Sv443-s-JokeAPI-Python-Wrapper
Just frickin
from jokeapi import Jokes
j = Jokes()
joke = j.get_joke()
print(joke)
bam you got yourself a joke
The get_joke() function has multiple optional parameters:
category - a list of categories the joke should fit in. Possible entries are "Programming", "Miscellaneous" and "Dark". Leave blank for any.
blacklist - a list of things you don't really want to see. Maybe you're babysitting. Possible entries are "nsfw", "religious", "political", "racist" and "sexist"
response_format - a string which describes what format you want your response in. Default is json, and it will return a dict. Other options are "xml" and "yaml"
type - what type of joke it is. Defaults to use either. Possible options are "single" and "twopart"
search_string - string to search for in jokes. Defaults to None
id_range - a list (which should only contain two items) which describes the range in which to search for jokes, by joke id.
Metadata
Release files for jokeapi 0.1.3
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 |
|---|---|---|---|---|
| jokeapi-0.1.3.tar.gz | 3.2 kB | Without provenance | Details for jokeapi-0.1.3.tar.gz |
Release files / jokeapi-0.1.3.tar.gz
| Download URL | jokeapi-0.1.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
403e05a9d0dfab1de6427b1bb9915773a6d3b6b79400470228384375c6b52c1e
|
|
BLAKE2b-256 checksum How to use checksums |
988fe14869cde4bb35dbacdb4b0bec71951a8c733bb37ab7ed924f890a73a7be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Security for jokeapi 0.1.3
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.