Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
.. image:: https://img.shields.io/pypi/v/axju-jokes :alt: PyPI :target: https://pypi.org/project/axju-jokes/
.. image:: https://img.shields.io/pypi/pyversions/axju-jokes :alt: Python Version :target: https://pypi.org/project/axju-jokes/
.. image:: https://img.shields.io/pypi/wheel/axju-jokes :alt: Wheel :target: https://pypi.org/project/axju-jokes/
.. image:: https://img.shields.io/pypi/implementation/axju-jokes :alt: Implementation :target: https://pypi.org/project/axju-jokes/
.. image:: https://img.shields.io/pypi/dm/axju-jokes :alt: Downloads :target: https://pypi.org/project/axju-jokes/
.. image:: https://img.shields.io/pypi/l/axju-jokes :alt: License :target: https://pypi.org/project/axju-jokes/
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
You can exit the function from the command line. There are two entry points:
.. code-block:: shell
$ joke $ python -m joke
With no arguments, it will return a random joke, quote or fact. You can set one specifically API. For example some cat facts:
.. code-block:: shell
$ joke cat
Use help to see the possible API's:
.. code-block:: shell
$ joke --help
Some jokes examples
.. code:: python
from joke.jokes import *
for i in range(10): print(chucknorris())
from random import choice print(choice([geek, icanhazdad, chucknorris, icndb])())
Some quotes examples
.. code:: python
from joke.quotes import *
print(quotesondesign())
for quote in quotesondesign(5): print(quote)
data = quotesondesign(format='data') print(data['quote']) print(data['author'])
print(stormconsultancy())
print(stormconsultancy(id=2))
data =stormconsultancy(id=2, format='data') print(data['quote']) print(data['author'])
Check also the example folder.
::
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.
To get the jokes, I use some open API's. If you know some missing API's, please contact me. Until now, the following API's are used.
Clone repo::
git clone https://github.com/axju/joke.git
Create virtual environment for Linux::
python3 -m venv venv source venv/bin/activate
Create virtual environment for Windows::
python -m venv venv .\venv\Scripts\activate
Update dev-tools::
python -m pip install --upgrade wheel pip setuptools twine tox flake8
Install local::
python setup.py develop
Run some tests::
tox python -m unittest discover python setup.py test
Publish the packages::
git tag -a 1.0.3 -m '1.0.3' git push origin 1.0.3 python setup.py --version python setup.py check python setup.py sdist bdist_wheel twine upload dist/*
FAQs
Jokes for python
We found that axju-jokes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.