{"id":13825991,"url":"https://github.com/ALIILAPRO/yun-ir","last_synced_at":"2025-07-08T22:33:05.798Z","repository":{"id":114131282,"uuid":"379258541","full_name":"ALIILAPRO/yun-ir","owner":"ALIILAPRO","description":"A Python client for https://Yun.ir URL shortener API.","archived":false,"fork":false,"pushed_at":"2025-03-24T09:11:12.000Z","size":29,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T18:26:51.209Z","etag":null,"topics":["aliilapro","python","shortener"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALIILAPRO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-22T12:17:30.000Z","updated_at":"2025-03-24T09:11:16.000Z","dependencies_parsed_at":"2025-04-10T20:47:01.191Z","dependency_job_id":"03e9b1d4-b982-4b4d-9411-91178295b04f","html_url":"https://github.com/ALIILAPRO/yun-ir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ALIILAPRO/yun-ir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALIILAPRO%2Fyun-ir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALIILAPRO%2Fyun-ir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALIILAPRO%2Fyun-ir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALIILAPRO%2Fyun-ir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALIILAPRO","download_url":"https://codeload.github.com/ALIILAPRO/yun-ir/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALIILAPRO%2Fyun-ir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264360312,"owners_count":23596104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliilapro","python","shortener"],"created_at":"2024-08-04T09:01:30.431Z","updated_at":"2025-07-08T22:33:05.792Z","avatar_url":"https://github.com/ALIILAPRO.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cdiv dir=\"rtl\"\u003e\n\n# کلاینت پایتون برای Yun.ir\n\nیک کلاینت پایتون برای API سرویس کوتاه‌کننده لینک [Yun.ir](https://yun.ir/)\n\n---\n\n## نصب\n\nنصب با استفاده از `pip`:\n\n```sh\npip install yun-ir\n```\n\n---\n\n## نحوه استفاده\n\n```python\nfrom yun import Yun\n\nlogin = Yun.Api('YOUR tOKEN')  # توکن API خود را وارد کنید\nresult = login.short('title', 'url')  # به جای 'title' و 'url' مقادیر دلخواه را وارد کنید\n\nprint(result)  # نتیجه را چاپ می‌کند\n```\n\n---\n\n## مستندات API\n\n### `yun_ir.Yun(token: str)`\n\nساخت یک نمونه از کلاینت Yun.ir\n\n**پارامترها:**\n- `token`: توکن API شما در Yun.ir\n\n---\n\n### `yun_ir.Yun.short(title: str, url: str) -\u003e dict`\n\nکوتاه‌کردن یک لینک با استفاده از API یون\n\n**پارامترها:**\n- `title`: عنوان لینک\n- `url`: لینکی که می‌خواهید کوتاه شود\n\n**خروجی:**\n- یک دیکشنری شامل لینک کوتاه‌شده یا پیام خطا (در صورت بروز خطا)\n\n---\n\n\u003e حتماً باید یک توکن معتبر از [Yun.ir](https://yun.ir/) دریافت کرده باشید.\n\n\u003c/div\u003e\n\n---\n\n# Yun.ir Python Client\n\nA Python client for the [Yun.ir](https://yun.ir/) URL shortener API.\n\n---\n\n## Installation\n\nInstall with `pip`:\n\n```sh\npip install yun-ir\n```\n\n---\n\n## Usage\n\n```python\nfrom yun import Yun\n\nlogin = Yun.Api('YOUR tOKEN')\nresult = login.short('title', 'url')\n\nprint(result)\n```\n\n---\n\n## API\n\n### `yun_ir.Yun(token: str)`\n\nCreate a new Yun.ir client instance.\n\n**Parameters:**\n- `token`: Your Yun.ir API token\n\n---\n\n### `yun_ir.Yun.short(title: str, url: str) -\u003e dict`\n\nShorten a URL using Yun.ir API.\n\n**Parameters:**\n- `title`: Title for the URL\n- `url`: URL to shorten\n\n**Returns:**\n- A dictionary containing the shortened URL, or an error message if the request fails.\n\n---\n\n\u003e Make sure you have a valid API token from [Yun.ir](https://yun.ir/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FALIILAPRO%2Fyun-ir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FALIILAPRO%2Fyun-ir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FALIILAPRO%2Fyun-ir/lists"}