Image of dadjokes++ geting used on terminal startup.
Dadjokes++
Dad jokes on steroid.
Fetch jokes from icanhazdadjoke. Unlike other alternatives, dadjokes++ can download all jokes to your computer for faster and offline retrieval.
Installation
Make sure you have python 3 and pip installed, then execute this in your terminal:
pip install dadjokes-plus-plus
Usage
From terminal
Fetch a random joke online
$ dadjokes
I used to be a banker, but I lost interest.
Download all jokes to jokes.txt
$ dadjokes -d "jokes.txt"
Load a random joke from jokes.txt
$ dadjokes -l "jokes.txt"
A steak pun is a rare medium well done.
Note: if you don't provide -d or -l a path it will automatically be "jokes.txt".
From python
Fetch a random joke online
import dadjokes
print(dadjoke.joke())
Download all jokes to jokes.txt
import dadjokes
print(dadjoke.save_jokes("jokes.txt"))
Load a random joke from jokes.txt
import dadjokes
print(dadjoke.joke("jokes.txt"))
Metadata
Release files for dadjokes-plus-plus 1.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-plus-plus-1.2.tar.gz | 3.9 kB | Without provenance | Details for dadjokes-plus-plus-1.2.tar.gz |
Release files / dadjokes-plus-plus-1.2.tar.gz
| Download URL | dadjokes-plus-plus-1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fd5d458ff53ce8f6bc8a39685bb259ca0ed47227d307964cd8ecfb7629f6312
|
|
BLAKE2b-256 checksum How to use checksums |
282ce8e47c9b8b92950a8d964c6521fbe7281903ab49d0371cebe640b9b70d3e
|
| 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/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for dadjokes-plus-plus 1.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.