One line jokes for programmers (jokes as a service)


License
BSD-3-Clause
Install
pip install pyjokes==0.8.3

Documentation

pyjokes

One line jokes for programmers (jokes as a service)

Installation

Install the pyjokes module with pip:

pip3 install pyjokes

Usage

Once installed, simply call pyjoke or pyjokes from the command line or add it to your .bashrc or .zshrc file to see a joke every time you open a terminal.

You can also access the jokes in your own project by importing pyjokes and using the functions get_joke and get_jokes. Alternatively, use the pyjokes.forever generator function:

import pyjokes


for joke in pyjokes.forever():
    # This will go on forever... you're welcome.
    print(joke)

Maintainers

The project is maintained by the members of the PyJokes Society:

  • Ben Nuttall
  • Alex Savio
  • Borja Ayerdi
  • Oier Etxaniz (RIP)

Contributing

  • The code is licensed under the BSD Licence
  • Please use GitHub issues to submit bugs and report issues
  • Feel free to contribute to the code
  • Feel free to contribute jokes (via pull request or proposal issue)
  • See the contributing policy

Website and documentation

The pyjokes website and documentation is available at https://pyjok.es/