dadjokeAPI-1.0.4
توضیحات
A simple API wrapper for your dad joke needs.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dadjokeAPI-1.0.4 |
| نام | dadjokeAPI |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aochi |
| ایمیل نویسنده | aochi@fuquila.net |
| آدرس صفحه اصلی | https://github.com/7ez/dadjokeAPI |
| آدرس اینترنتی | https://pypi.org/project/dadjokeAPI/ |
| مجوز | - |
### dadjokeAPI - A simple API for your dad joke needs.
Non-asynchronous usage:
```python
from dadjokeAPI import searchDadJokes
from dadjokeAPI import getDadJoke
# Prints a dad joke with a random or specified ID.
# Raises JokeNotFoundException if the joke was not found.
print(getDadJoke("0189hNRf2g"))
# Prints a list of dad jokes with a random or provided term.
# Returns a empty list if no jokes were found.
print(searchDadJokes("fish"))
```
Asynchronous usage:
```python
from dadjokeAPI import searchDadJokesAsync
from dadjokeAPI import getDadJokeAsync
# Prints a dad joke with a random or specified ID.
# Raises JokeNotFoundException if the joke was not found.
# Has an optional aiohttp.ClientSession argument called http
# in case you want to provide your session.
print(await getDadJokeAsync("0189hNRf2g"))
# Prints a list of dad jokes with a random or provided term.
# Returns a empty list if no jokes were found.
# Has an optional aiohttp.ClientSession argument called http
# in case you want to provide your session.
print(await searchDadJokesAsync("fish"))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl dadjokeAPI-1.0.4:
pip install dadjokeAPI-1.0.4.whl
نصب پکیج tar.gz dadjokeAPI-1.0.4:
pip install dadjokeAPI-1.0.4.tar.gz