pyjokes

One line jokes for programmers (jokes as a service)

pyjokes

Install

Install with pip:

pip install pyjokes

See the install page for information on installing on different platforms.

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.

Reference

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