Skip to main content

Python url shortner

Project description

📦 SHORTNERS

telegram badge telegram badge telegram badge

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


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)

Uploaded Source

Built Distribution

Shortners-1.1.5-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for Shortners-1.1.5.tar.gz
Algorithm Hash digest
SHA256 4d3d121a29d6548778935197baf0d827e31ff374b7a5ac6792a7453d79edd629
MD5 25ee2536c2ddba003269e7b4a26984fe
BLAKE2b-256 37d0652e7a4ef6489b0d74c9394790a504348f110f9eb8af23b34fae4fd16c75

See more details on using hashes here.

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

Hashes for Shortners-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aa657c45cc310761e3db51091ee07e58c4295cb96cff4aa8a21e80ad729c835e
MD5 7ba70f6999a72e24494177b49f0d9252
BLAKE2b-256 565e11e582ab6ea6ced741b978e046662fc5b05569d44017679abe5a538403d3

See more details on using hashes here.

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