Skip to main content

Get git joke in command line

Project description

git-joke

.. image:: https://travis-ci.org/vitakrya/git-joke-cli.svg?branch=master :target: https://travis-ci.org/vitakrya/git-joke-cli

Usage

You can use this as an api to fetch joke by using

.. code-block::

from gitjoke.extractor import get_joke, get_jokes

# Get all jokes in list
jokes = get_jokes()

# Get random joke
joke = get_joke()

Example from the internal help command::

$ git-joke -h
Display random git joke or all git jokes
Usage:
    git-joke [--all]

Options:
    -h --help  Show this help message
    -v --version  Show version
    -a --all  Show all jokes

License

MIT

Project details


Download files

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

Source Distribution

git-joke-cli-1.1.2.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

git_joke_cli-1.1.2-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page