Python url shortner
Project description
INSTALLATION
pip install shortners
import asyncio
from Shortners import Shortner
shortner_api = "a1cgsja52iey3j53mg"
shortner_url = "https://tnshort.net/api"
contents_url = "https://github.com/Clinton-Abraham"
core = Shortner(shortner_api, shortner_url)
async def test():
o = await core.shortlink(contents_url)
print(o)
asyncio.run(test())
import asyncio
from Shortners import Shortner
shortner_api = "a1cgsja52iey3j53mg"
shortner_url = "https://xxxxxx.net/api"
contents_url = "https://github.com/Clinton-Abraham"
core = Shortner(shortner_api, shortner_url)
async def test():
o = await core.clinton(contents_url)
print(o)
asyncio.run(test())
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
Shortners-1.1.5.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file Shortners-1.1.5.tar.gz
.
File metadata
- Download URL: Shortners-1.1.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3d121a29d6548778935197baf0d827e31ff374b7a5ac6792a7453d79edd629 |
|
MD5 | 25ee2536c2ddba003269e7b4a26984fe |
|
BLAKE2b-256 | 37d0652e7a4ef6489b0d74c9394790a504348f110f9eb8af23b34fae4fd16c75 |
File details
Details for the file Shortners-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: Shortners-1.1.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa657c45cc310761e3db51091ee07e58c4295cb96cff4aa8a21e80ad729c835e |
|
MD5 | 7ba70f6999a72e24494177b49f0d9252 |
|
BLAKE2b-256 | 565e11e582ab6ea6ced741b978e046662fc5b05569d44017679abe5a538403d3 |