pyud 1.0.1

Last updated:

0 purchases

pyud 1.0.1 Image
pyud 1.0.1 Images
Add to Cart

Description:

pyud 1.0.1

A simple wrapper for the Urban Dictionary API in Python.

Features

Synchronous and asynchronous clients for the API
Definition objects for object-style access to definition attributes, and includes all fields
Full coverage of the known API



Requirements

Python 3.5.3 or higher. Python 2 is not supported.
aiohttp, version 3.6.2



Installing
You can install directly from PyPI:
python3 -m pip install pyud
On Windows this is:
py -3 -m pip install pyud


Quick Examples

Synchronous Example
import pyud

ud = pyud.Client()
definitions = ud.define("hello")
print(definitions[0].word) # Outputs "hello"


Asynchronous Example
import asyncio

import pyud


async def example():
ud = pyud.AsyncClient()
definitions = await ud.define("hello")
print(definitions[0].word) # Outputs "hello"


loop = asyncio.get_event_loop()
loop.run_until_complete(example())



Documentation
pyud Documentation


License
GNU GPL v3

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.