Yun.ir Python Client
A Python client for the Yun.ir URL shortener API.
Installation
Install with pip:
pip install yun-ir
Usage
from yun import Yun
login = Yun.Api('YOUR tOKEN')
result = login.short('title', 'url')
print(result)
API
yun_ir.Yun(token: str)
Create a new Yun.ir client instance.
token: Your Yun.ir API token.
yun_ir.Yun.short(title: str, url: str) -> dict
Shorten a URL using Yun.ir API.
title: Title for the URL
url: URL to shorten
Returns:
A dictionary containing the shortened URL, or an error message if the request fails.
Metadata
Release files for yun-ir 1.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 | |
|---|---|---|---|---|
| yun-ir-1.0.tar.gz | 2.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yun_ir-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / yun-ir-1.0.tar.gz
| Download URL | yun-ir-1.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7a5492d92070e827552b037852f71cd780119825ae1485c69a9fef985253fc5
|
|
BLAKE2b-256 checksum How to use checksums |
9a279b7b5da7a8ff0cb163fcf9a5d3a1f870ac90c540a329bae92c6f121a98c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.3
|
Release files / yun_ir-1.0-py3-none-any.whl
| Download URL | yun_ir-1.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12d9eb6f6ad42ba0b6bd6f9f7c1ae16fd8c0ff21b9deacede650484138070ede
|
|
BLAKE2b-256 checksum How to use checksums |
7c34a410237c8b0f5db72799c237ea2cfc3586f80451253a5b94b8705ccce80c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.3
|
Security for yun-ir 1.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.