brevis

Python client for the Brevis URL shortener API


Keywords
brevis, brevis-python-client, url-shortener, url-shortening
License
MIT
Install
pip install brevis==0.1.0

Documentation

brevis-python-client

Python Client for the Brevis URL shortener API

How-to use

>>> import brevis
>>> client = brevis.BrevisClient('https://brevis-server')
>>> short = client.shorten('https://google.com')
>>> print(short)
{'short_url': 'https://brevis-test.klik.co/Hz9YqVphB'}
>>> long = client.unshorten(short['short_url'])
>>> print(long)
{'url': 'https://google.com'}