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 | Provenance | Actions |
|---|---|---|---|---|
| dadjokes-1.3.2.tar.gz | 3.6 kB | Without provenance | Details for dadjokes-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dadjokes-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for dadjokes-1.3.2-py3-none-any.whl |
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
|
Security for dadjokes 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.