Skip to main content

No project description provided

Project description

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)

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

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.

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