PyLeb_ShortLink Documentation
PyLeb_ShortLink Documentation
Overview
PyLeb_ShortLink is a Python library designed for URL shortening using the TinyURL API.
Installation
Install PyLeb_ShortLink using pip:
pip install PyLeb_ShortLink
Quick Start
import shortlink
# Shorten a URL
shortened_url = shortlink.short("https://example.com")
print("Shortened URL:", shortened_url)
License
PyLeb_ShortLink is distributed under the New Global License Version 3.0 (NewGBLv3).
API Reference
short(Link: str) -> str
Shortens the given URL using the TinyURL API.
Parameters:
- Link (str): The URL to be shortened.
Returns:
- str: The shortened URL.
If the URL cannot be shortened, the function returns a message indicating the failure.
Dependencies
- requests: Used for making HTTP requests.
Contribution
Contributions, bug reports, and feature requests are welcome on GitHub.
Contact
For inquiries or support, please contact the author:
- Author: mesteranas
- Email: anasformohammed@gmail.com
Metadata
Release files for PyLeb-ShortLink 1.0.0
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 |
|---|---|---|---|---|
| PyLeb_ShortLink-1.0.0.tar.gz | 39.0 kB | Without provenance | Details for PyLeb_ShortLink-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyLeb_ShortLink-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for PyLeb_ShortLink-1.0.0-py3-none-any.whl |
Total release size: 66.6 kB
Release files / PyLeb_ShortLink-1.0.0.tar.gz
| Download URL | PyLeb_ShortLink-1.0.0.tar.gz |
|---|---|
| Size | 39.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43930c1ea982cb91edfec7736f53773a44f3391eb036ab979acfe9e078ffdc7b
|
|
BLAKE2b-256 checksum How to use checksums |
1b603aa7263cee441bba6401201f08c82317de001e31667dd88f64351998a4b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / PyLeb_ShortLink-1.0.0-py3-none-any.whl
| Download URL | PyLeb_ShortLink-1.0.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
443beb2882863c677be0d849e09a25e01a944cfdf8d9b56b3123a6f88035e928
|
|
BLAKE2b-256 checksum How to use checksums |
1c5c4060cb6423aeffb2a783081cc49d3ebc5df956d2bf6891ea03ff372c1170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for PyLeb-ShortLink 1.0.0
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.