pyjokes

One line jokes for programmers (jokes as a service)

pyjokes

Install

Install with pip:

sudo pip install pyjokes

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

Usage

Command line

Run pyjoke 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 drop 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