pyjokes
One line jokes for programmers (jokes as a service)
Install
Install with pip:
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.