Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wangonya/norris-cli

A python cli app that brightens up your day with Chuck Norris jokes from chucknorris.io.
https://github.com/wangonya/norris-cli

Last synced: about 2 months ago
JSON representation

A python cli app that brightens up your day with Chuck Norris jokes from chucknorris.io.

Awesome Lists containing this project

README

        

# norris-cli
A python cli app that brightens up your day with Chuck Norris jokes from [chucknorris.io](https://api.chucknorris.io/).

## Installation
Install norris-cli from [PyPi](https://pypi.org/project/norris-cli/)
```
pip3 install norris-cli
```
**Make sure you install the pip3 version.**

## How to use
```
$ norris-cli --help
Usage: norris-cli [OPTIONS]

If I had a nickel for every Chuck Norris joke out there...

Options:
-c, --category [dev|movie|food|celebrity|science|sport|political|religion|animal|history|music|travel|career|money|fashion]
--help Show this message and exit.

```

### Get a random joke
```
$ norris-cli
Chuck Norris doesn't call the wrong number. You answer the wrong phone.
```

### Specify a category
_You can see all available categories by running `norris-cli --help`_
```
$ norris-cli -c dev
Chuck Norris can't test for equality because he has no equal.
```

```
$ norris-cli -c food
Chuck Norris' favorite cereal is Kellogg's Nails 'N' Gravel.
```

Enjoy!

![approval](https://media.giphy.com/media/3hvmlYNsOTFWE/giphy.gif)