The official python wrapper for Quecto, a link shortener
Project description
quecto-py
Quecto-py is a simple and official wrapper of Quecto, an open-source and self-hostable solution for link shortening.
Installation
pip install quecto
Usage
Shorten a link
from quecto import Quecto
client = Quecto("https://s.oriondev.fr")
r = client.shortUrl("https://example.com", "password") # password is optional
print(r) # https://s.oriondev.fr/s/189d28e9b9ae6
Unshorten a link
from quecto import Quecto
client = Quecto("https://s.oriondev.fr")
r = client.unshortUrl("https://s.oriondev.fr/s/189d28e9b9ae6", "password") # password is optional
print(r) # https://example.com
Check if the domain is a valid Quecto instance
from quecto import Quecto
client = Quecto("https://s.oriondev.fr")
r = client.isValidInstance()
print(r) # True
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quecto-1.0.3.tar.gz
(39.5 kB
view hashes)
Built Distribution
quecto-1.0.3-py3-none-any.whl
(27.4 kB
view hashes)