An async API wrapper for the Random-d.uk API
Project description
DuckDuck
A async wrapper for the RandomDuck API
Features
- An async library.
- Has all of the endpoints covered in v2.
- Has a object oriented design so it's easy to use.
Installation
$python -m pip install DuckDuck
Example
import asyncio
import DuckDuck
client = DuckDuck.Duck()
async def main():
asyncio.get_running_loop().set_exception_handler(lambda loop, context: None) # This suppresses the warning that comes from the aiohttp library you can remove this line if you want the warnings to be in your terminal.
url = await client.fetch_random()
print(url)
asyncio.run(main())
Support
Contact me: iamSkev#4260
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.