Skip to main content

Jokes for python

Project description

Jokes for python.

I was really sad, no package called joke. So I decided to create one, really fast. This package have some functions, that return some jokes, quotes or facts. If you are sad, use the joke packages. :)


pip install axju-jokes


Some jokes examples

from joke.jokes import *
# This will import all joke-functions (geek, icanhazdad, chucknorris, icndb)
# Now you can use them to get some jokes.

# For example you can display 10 Chuck Norris jokes.
for i in range(10):

# Or get a random joke-function.
from random import choice
print(choice([geek, icanhazdad, chucknorris, icndb])())

Some quotes examples

from joke.quotes import *

# get a quote from

# you can get more then one with one request
for quote in quotesondesign(5):

# and you can get the data
data = quotesondesign(format='data')

# get quote from

# You can set the ID to get a specific quote

# the stormconsultancy-function give you also the data
data =stormconsultancy(id=2, format='data')

Check also the example folder.

Import Easter Egg

>>> import joke.eggs
Chuck Norris has to register every part of his body as a separate lethal weapon.
His spleen is considered a concealed weapon in over 50 states.


Clone repo:

git clone

Create virtual environment and update dev-tools:

python3 -m venv venv
source venv/bin/activate
pip install --upgrade wheel pip setuptools twine tox

Install local:

pip install -e .

Run some tests:

python -m unittest discover
python test

Publish the packages:

python sdist bdist_wheel
twine upload dist/*

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for axju-jokes, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size axju_jokes-1.0.0-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size axju-jokes-1.0.0.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page