{"id":22674750,"url":"https://github.com/bitnom/aiounu","last_synced_at":"2025-03-29T12:22:09.741Z","repository":{"id":57409216,"uuid":"323542790","full_name":"bitnom/aiounu","owner":"bitnom","description":"Asyncio module for unu in Python3 using aiohttp.","archived":false,"fork":false,"pushed_at":"2020-12-27T15:36:20.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T13:24:16.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitnom.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}},"created_at":"2020-12-22T06:34:53.000Z","updated_at":"2020-12-27T15:36:22.000Z","dependencies_parsed_at":"2022-09-26T17:11:08.745Z","dependency_job_id":null,"html_url":"https://github.com/bitnom/aiounu","commit_stats":null,"previous_names":["tensortom/aiounu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnom%2Faiounu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnom%2Faiounu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnom%2Faiounu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitnom%2Faiounu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitnom","download_url":"https://codeload.github.com/bitnom/aiounu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246181816,"owners_count":20736621,"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":[],"created_at":"2024-12-09T17:18:03.062Z","updated_at":"2025-03-29T12:22:09.722Z","avatar_url":"https://github.com/bitnom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# aiounu\n\nAn asyncio module for [unu](https://u.nu/) in Python3 using aiohttp. Forked from\n[vcinex/unu](https://github.com/vcinex/unu).\n\n## Install\n\n```sh\npip install aiounu\n```\n\n## Use\n\n```python\nimport aiounu as unu\n\ntest_url = \"https://example.com/?test=52e838e8-0943-4ccb-bfd8-ae6bb3173bd2\"\nunu_resp = await unu.shorten(url=test_url, output_format=\"dot\", keyword=\"\")\nprint(unu_resp.shorturl)\n```\n\n## Example Result\n\nIf `output_format` is set to **dot** (The default), the resulting JSON object properties will be accessible (Thanks to\n[mo-dots](https://pypi.org/project/mo-dots/)) by both dot.notation and dict['notation'].\n\n```json\n{\n  \"url\": {\n    \"keyword\": \"kfuns\",\n    \"url\": \"https://example.com/?test=52e838e8-0943-4ccb-bfd8-ae6bb3173bd2\",\n    \"title\": \"Example Domain\",\n    \"date\": \"2020-12-22 08:44:33\",\n    \"ip\": \"22.42.219.59\"\n  },\n  \"status\": \"error\",\n  \"message\": \"https://example.com/?test=52e838e8-0943-4ccb-bfd8-ae6bb[...] added to database\u003cbr/\u003e(Could not check Google Safe Browsing: Bad Request)\",\n  \"title\": \"Example Domain\",\n  \"shorturl\": \"https://u.nu/kfuns\",\n  \"statusCode\": 200\n}\n```\n\nOnly the `url` variable is necessary. For a runnable example, see\n[tests/test_shorten.py](https://github.com/TensorTom/aiounu/blob/master/tests/test_shorten.py) or clone the repo\nand run [pytest](https://docs.pytest.org/en/stable/).\n\n----------------------------------------\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitnom%2Faiounu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitnom%2Faiounu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitnom%2Faiounu/lists"}