Dadjokes
icanhazdadjoke API wrapper, to programatically cheer your code up.
Installation
pip install dadjokes
Usage
Example
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:
dadjokes -h
Metadata
Release files for dadjokes 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dadjokes-1.3.2.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dadjokes-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / dadjokes-1.3.2.tar.gz
| Download URL | dadjokes-1.3.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f892a550379b38e3c069241634f700625eb35419f7a0583977fef64d6a2bf3d
|
|
BLAKE2b-256 checksum How to use checksums |
e1763212fc36b03e63ef8c7b14808a428cda0482c11fc301fdf7d908d92ebd54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|
Release files / dadjokes-1.3.2-py3-none-any.whl
| Download URL | dadjokes-1.3.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f6e1852048836562edbdd7129c39a1abebc62e315a8c5cd02e7cb98e7021fb8
|
|
BLAKE2b-256 checksum How to use checksums |
fe4aec0da39a07e20a4e1d77c4d1d5d02caab8bb531c35e56ce79db7ed407af9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|