pyjokes

One line jokes for programmers (jokes as a service)

Install

Install with pip:

pip install pyjokes

Usage

Command line

Run pyjoke or pyjokes at the command line to get a random joke:

$ pyjoke
Why did the programmer quit his job? Because he didn't get arrays.

Python

Import the pyjokes module in a Python file and use the get_joke function to easily access a random joke into your application:

import pyjokes

print(pyjokes.get_joke())

See the API reference for full documentation.

Proposal of new jokes

New jokes should be proposed in the proposal issue or via pull request.

PyJokes logo

The logo was designed by Sam Alder. The PyJokes Society is eternally grateful for his contribution.

Friends of Pyjokes

PyCon UK

The UK's annual Python conference

EuroPython

Europe's longest-running community-driven Python conference


Follow us on social media