A lightweight Python library and CLI for jokes, dad jokes, roasts, and inspirational quotes.
- π Random jokes
- π¨ Dad jokes
- π₯ Roasts
- π¬ Inspirational quotes
- π Includes 5,421+ quotes
- π» Command Line Interface (CLI)
- π¦ Zero dependencies
- β‘ Fast & lightweight
- π Python 3.8+
pip install FunKitPyfrom funkitpy import joke, dad_joke, roast, quote
print(joke())
print(dad_joke())
print(roast())
print(quote())from funkitpy import joke
print(joke())from funkitpy import dad_joke
print(dad_joke())from funkitpy import roast
print(roast())from funkitpy import quote
print(quote())Returns the raw quote dictionary.
from funkitpy import quote_data
print(quote_data())Example:
{
"quote": "The best way to get started is to quit talking and begin doing.",
"author": "Walt Disney"
}The following aliases are also available:
from funkitpy import (
get_joke,
get_dad_joke,
get_roast,
get_quote
)These functions behave exactly the same as:
joke()
dad_joke()
roast()
quote()FunKitPy includes a built-in CLI.
funkit jokefunkit dad-jokefunkit roastfunkit quotefunkit -v
funkit -V
funkit --versionfunkit commandsOutput:
joke
dad-joke
roast
quote
Why don't scientists trust atoms?
Because they make up everything.
"The best way to get started is to quit talking and begin doing."
β Walt Disney
funkitpy/
βββ funkitpy/
β βββ __init__.py
β βββ jokes.py
β βββ roasts.py
β βββ quotes.py
β βββ cli.py
β βββ version.py
β βββ data/
β βββ jokes.json
β βββ dad_jokes.json
β βββ roasts.json
β βββ quotes.json
βββ tests/
βββ pyproject.toml
βββ LICENSE
βββ README.md
- No API keys required
- No internet connection required
- Lightweight and fast
- Easy Python API
- Simple CLI
- Great for bots, scripts, terminals, and fun projects
- Includes a collection of 5,421+ inspirational quotes
Contributions, bug reports, and feature requests are welcome.
- Fork the repository
- Create a branch
- Make your changes
- Submit a pull request
Homepage:
https://github.com/fmasterpro27/FunKitPy
Issues:
https://github.com/fmasterpro27/FunKitPy/issues
PyPI:
https://pypi.org/project/funkitpy/
Licensed under the Apache License 2.0.