Skip to main content

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.

Contributors

License

GPL3

Project details


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)

Uploaded Source

Built Distribution

quecto-1.0.3-py3-none-any.whl (27.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page