Skip to main content

Install

Pypi

pip install encurtanet

Simple use example

from encurtanet import EncurtaNet, AdsTypes

encurtanet = EncurtaNet("YOUR API TOKEN HERE")

url_info = encurtanet.shorten(
    url = "https://marcuth.github.io/", # URL you want to shorten
    alias = "url-alias", # URL alias
    is_text_format = False, # Whether the result from the server is going to be text
    ads_type = AdsTypes.InterstitialAds # Ads type, you can define two types, there is no way to define banner and also you don't need to define if you want url with ads
)

url_info.raw_data # Result of all 
url_info.shortened_url # Resulting URL
url_info.status # Resulting status ("success" | "error")
url_info.message # Resulting message (if the api sent a message)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encurtanet-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file encurtanet-0.1.0.tar.gz.

File metadata

  • Download URL: encurtanet-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for encurtanet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50e1a62c682aca89b4242af2bccd40ff21c0cf2ff4fa802e84bd32da03333744
MD5 1792be24485d2641944eb189f7462818
BLAKE2b-256 89de34643ebdeb0a951c15931b9b4b87a8e23579b883886c8dfa6b5517468ddf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

0.0.0.0.4

1 file

0.0.0.0.3

1 file

0.0.0.0.2

1 file

0.0.0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page