dadjokes-1.3.2
توضیحات
icanhazdadjoke api wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dadjokes-1.3.2 |
| نام | dadjokes |
| نسخه کتابخانه | 1.3.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | CrossNox |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/crossnox/dadjokes |
| آدرس اینترنتی | https://pypi.org/project/dadjokes/ |
| مجوز | - |
# Dadjokes
[icanhazdadjoke](https://icanhazdadjoke.com/) API wrapper, to programatically cheer your code up.
# Installation
```bash
pip install dadjokes
```
# Usage
## Example
```python
from dadjokes import Dadjoke
dadjoke = Dadjoke()
print(dadjoke.joke)
```
The previous snippet will print a random joke.
`Dadjoke` objects can be built from an id as well. You can get those calling the `.id` property of a `Dadjoke`. If you are using this in a **Slack** app, you might find the `.as_slack` property useful.
You can use the iterable `DadjokeSearch` iterable class to search jokes by term, with an optional limit.
### cli
Please check available options with:
```bash
dadjokes -h
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | bump |
نحوه نصب
نصب پکیج whl dadjokes-1.3.2:
pip install dadjokes-1.3.2.whl
نصب پکیج tar.gz dadjokes-1.3.2:
pip install dadjokes-1.3.2.tar.gz