Install
Pypi
pip install shrtfly
GitHub
pip install git+https://github.com/1Marcuth/shrtfly-py.git
Simple use example
from ShrtFly import ShrtFly, MAINSTREAM, ADULT
shortener = ShrtFly("YOUR API TOKEN HERE")
url_info = shortener.shorten(
url="https://1marcuth.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=MAINSTREAM # 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.get_raw_data() # Result of all
url_info.get_shortened_url() # Resulting URL
url_info.get_status() # Resulting status ("success" | "error")
url_info.get_message() # Resulting message (if the api sent a message)
Metadata
Release files for shrtfly 0.0.0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shrtfly-0.0.0.0.3.tar.gz | 3.2 kB | Without provenance | Details for shrtfly-0.0.0.0.3.tar.gz |
Release files / shrtfly-0.0.0.0.3.tar.gz
| Download URL | shrtfly-0.0.0.0.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97cacf5c9d5eb1a3a633587c1ecd7256a6f28497f32bef808fcce0722dd54b2d
|
|
BLAKE2b-256 checksum How to use checksums |
d191d0a3cf4a3228b59fa573e265ecb40307eab614078a4846c05d1b9616a468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for shrtfly 0.0.0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.