A Python client for Yun.ir URL shortener API
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yun-ir-1.0.tar.gz.
File metadata
- Download URL: yun-ir-1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7a5492d92070e827552b037852f71cd780119825ae1485c69a9fef985253fc5
|
|
| MD5 |
79a505d147c3c238b5e402e8f3d91e14
|
|
| BLAKE2b-256 |
9a279b7b5da7a8ff0cb163fcf9a5d3a1f870ac90c540a329bae92c6f121a98c5
|
File details
Details for the file yun_ir-1.0-py3-none-any.whl.
File metadata
- Download URL: yun_ir-1.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12d9eb6f6ad42ba0b6bd6f9f7c1ae16fd8c0ff21b9deacede650484138070ede
|
|
| MD5 |
d010cb92fe31c8ca71b03e9349b87635
|
|
| BLAKE2b-256 |
7c34a410237c8b0f5db72799c237ea2cfc3586f80451253a5b94b8705ccce80c
|