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)

Metadata

Release files for encurtanet 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for encurtanet 0.1.0
File Size Uploaded
encurtanet-0.1.0.tar.gz 3.1 kB Details

Release files / encurtanet-0.1.0.tar.gz

Download URL encurtanet-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
50e1a62c682aca89b4242af2bccd40ff21c0cf2ff4fa802e84bd32da03333744
BLAKE2b-256 checksum
How to use checksums
89de34643ebdeb0a951c15931b9b4b87a8e23579b883886c8dfa6b5517468ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release 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