A lightweight Python toolkit for fetching and generating jokes, dad jokes, and roasts.
Project description
FunKitPy
A lightweight Python library and CLI for jokes, dad jokes, roasts, and inspirational quotes.
Features
- ๐ญ Random jokes
- ๐จ Dad jokes
- ๐ฅ Roasts
- ๐ฌ Inspirational quotes
- ๐ Includes 5,521+ quotes
- ๐ป Command Line Interface (CLI)
- ๐ฆ Zero dependencies
- โก Fast & lightweight
- ๐ Python 3.8+
Installation
pip install FunKitPy
Quick Start
from funkitpy import joke, dad_joke, roast, quote, advice
print(joke())
print(dad_joke())
print(roast())
print(quote())
print(advice())
Python API
Random Joke
from funkitpy import joke
print(joke())
Dad Joke
from funkitpy import dad_joke
print(dad_joke())
Roast
from funkitpy import roast
print(roast())
Quote
from funkitpy import quote
print(quote())
Advice
from funkitpy import advice
print(advice())
Quote Data
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"
}
Compatibility Aliases
The following aliases are also available:
from funkitpy import (
get_joke,
get_dad_joke,
get_roast,
get_quote,
get_advice
)
These functions behave exactly the same as:
joke()
dad_joke()
roast()
quote()
advice()
Command Line Interface
FunKitPy includes a built-in CLI.
Random Joke
funkit joke
Dad Joke
funkit dad-joke
Roast
funkit roast
Quote
funkit quote
Advice
funkit advice
Show Version
funkit -v
funkit -V
funkit --version
Show Commands
funkit commands
Output:
joke
dad-joke
roast
quote
advice
Example Output
Joke
Why don't scientists trust atoms?
Because they make up everything.
Quote
"The best way to get started is to quit talking and begin doing."
โ Walt Disney
Project Structure
funkitpy/
โโโ funkitpy/
โ โโโ __init__.py
โ โโโ advices.py
โ โโโ jokes.py
โ โโโ roasts.py
โ โโโ quotes.py
โ โโโ cli.py
โ โโโ version.py
โ โโโ data/
โ โโโ advices.json
โ โโโ jokes.json
โ โโโ dad_jokes.json
โ โโโ roasts.json
โ โโโ quotes.json
โโโ tests/
โโโ pyproject.toml
โโโ LICENSE
โโโ README.md
Why FunKitPy?
- 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
Links
Homepage:
https://github.com/fmasterpro27/FunKitPy
Issues:
https://github.com/fmasterpro27/FunKitPy/issues
PyPI:
https://pypi.org/project/FunKitPy/
License
Licensed under the Apache License 2.0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file funkitpy-0.4.0.tar.gz.
File metadata
- Download URL: funkitpy-0.4.0.tar.gz
- Upload date:
- Size: 225.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8af190365b995b6af97cfcf994c622373a6f1a8d65916e9fbc8ae7916b3482c
|
|
| MD5 |
17d66b3536394b94c1292ccf74db2ac7
|
|
| BLAKE2b-256 |
18af77f56afe89414eb8eb43269b5cbd36e8ea5dda22bb7cd2a960ecadb04e1d
|
File details
Details for the file funkitpy-0.4.0-py3-none-any.whl.
File metadata
- Download URL: funkitpy-0.4.0-py3-none-any.whl
- Upload date:
- Size: 230.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de7eae6c634eaa91b747b04e8d768948188c4855bd50af7f2792e9b9497afa9
|
|
| MD5 |
1b87f6cfbf6ef8739fed41d80af55d82
|
|
| BLAKE2b-256 |
4f0385ebd2a59385c6be7bf5fa8713ee85eea9b0ef196c4dd32490647a33874c
|