Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/wangonya/norris-cli
- Owner: wangonya
- License: mit
- Created: 2018-12-26T14:50:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:30:03.000Z (about 2 years ago)
- Last Synced: 2024-10-05T08:06:12.574Z (4 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)