pyjokes
One line jokes for programmers (jokes as a service)
What it is and what it does
pyjokes is a lightweight library that serves one-liner jokes targeted at programmers. It can be used as a command-line tool (pyjoke command) or imported as a Python module to fetch jokes programmatically. The package includes jokes in multiple languages and categories (such as 'chuck' for Chuck Norris jokes), and offers functions to retrieve a single random joke, all jokes in a category, or an infinite stream via a generator.
The package has no runtime dependencies and installs cleanly on modern Python versions (3.9–3.12). However, it is in dormant maintenance—the last release was 734 days ago—so new jokes, bug fixes, and feature additions are not expected. It is suitable for adding levity to terminal sessions or as a novelty inclusion in applications, but should not be relied upon for active development or content updates.
Use it for:
- Display a random programmer joke in your terminal each time you open a shell by adding pyjoke to .bashrc or .zshrc.
- Fetch a joke programmatically in a Python script or application to add humor to logs, status messages, or welcome screens.
- Build a joke rotation feature that cycles through all jokes in a specific language or category using get_jokes().
- Create a continuous joke stream for entertainment or testing purposes using the forever() generator function.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides one-liner programmer jokes accessible via command line or Python API, supporting multiple languages and joke categories.
Yes, if you want a lightweight, zero-dependency way to add programmer jokes to your terminal or scripts. The dormant maintenance status is not a blocker for a static joke database, but be aware that no new jokes or updates are forthcoming. Install only if novelty or entertainment is the goal, not if you expect active development or content curation.
Install
pyjokes on PyPI
pip
pip install pyjokesuv
uv add pyjokespoetry
poetry add pyjokesInstalling pyjokes
Before you install
Low install friction with no runtime dependencies. Dormant maintenance status (734 days since last release) means bug fixes and new content are unlikely, though the package remains compatible with current Python versions.
License in practice
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution and license text preservation are required.
Quickstart
pip install pyjokes
import pyjokes
print(pyjokes.get_joke())
# Or from command line:
# pyjoke
Requires Python 3.9 or later (supports up to 3.12).
Verify before relying
- Whether the joke database is actively curated or if new jokes are added despite dormant maintenance status.
- Performance characteristics when iterating through all jokes or using the forever() generator on large datasets.
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 734 days since the last release |
| First released | |
| Downloads | 187,595/month — #9,960 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyjokes-0.8.3-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
linode-cliCommand-line interface for the Linode API that…
permissive · top 15,000 on PyPI
youtube-transcript-apiFetches transcripts and subtitles from YouTube…
permissive · top 1,000 on PyPI
langchain-togetherConnects LangChain applications to Together…
permissive · top 15,000 on PyPI
httpieHTTPie is a command-line HTTP client that makes…
permissive · top 5,000 on PyPI
clabeValidates and generates CLABE numbers, Mexico's…
permissive · top 15,000 on PyPI
llama-index-llms-bedrockIntegrates AWS Bedrock LLMs into LlamaIndex,…
permissive · top 15,000 on PyPI
pycowsayDisplays text in a formatted ASCII art cow…
permissive · top 15,000 on PyPI
cyrtranslitConverts text between Cyrillic and Latin…
permissive · top 15,000 on PyPI