Socket
Socket
Sign inDemoInstall

yun-ir

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yun-ir

A Python client for Yun.ir URL shortener API


Maintainers
1

Readme

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.

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc