Skip to main content

Asyncio module for unu in Python3 using aiohttp.

Project description


An asyncio module for unu in Python3 using aiohttp. Forked from vcinex/unu.


pip install aiounu


import aiounu as unu

test_url = ""
unu_resp = await unu.shorten(url=test_url, output_format="dot", keyword="")

Example Result

If output_format is set to dot (The default), the resulting JSON object properties will be accessible (Thanks to mo-dots) by both dot.notation and dict['notation'].

  "url": {
    "keyword": "kfuns",
    "url": "",
    "title": "Example Domain",
    "date": "2020-12-22 08:44:33",
    "ip": ""
  "status": "error",
  "message": "[...] added to database<br/>(Could not check Google Safe Browsing: Bad Request)",
  "title": "Example Domain",
  "shorturl": "",
  "statusCode": 200

Only the url variable is necessary. For a runnable example, see tests/ or clone the repo and run pytest.

MIT License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiounu-0.1.3.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

aiounu-0.1.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page