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
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
quecto-1.0.3-py3-none-any.whl
(27.4 kB
view details)
File details
Details for the file quecto-1.0.3.tar.gz.
File metadata
- Download URL: quecto-1.0.3.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96aad1c48562798e204414fefcbfd131ba3f94b790ea04fec8c3d1c7d9222f80
|
|
| MD5 |
40053cbd1f811ccf82e46fb13b2815ac
|
|
| BLAKE2b-256 |
590d86737bdddeda3c3a8946e754e2b472f306000c56757b841eece7b1eaac65
|
File details
Details for the file quecto-1.0.3-py3-none-any.whl.
File metadata
- Download URL: quecto-1.0.3-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51972c5a306bebf3a6c03793ce290f412f951e37fad5a9c0040dd1236ecee855
|
|
| MD5 |
4643cf8c66b4589a46e3390ce46db7ef
|
|
| BLAKE2b-256 |
820f8e92abf944c72b3edb2687822a24d94bdfed29278d23c9b4c1d3fc9a8189
|