Skip to main content

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.

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)

Source distribution for yun-ir 1.0
File Size Uploaded
yun-ir-1.0.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yun-ir 1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page