Your own personal Griznog, wisdom on demand
Project description
Griznog
Usage
I'm a redneck, I never read the instructions. --Griznog 4/26/2019
Well, there are still several use cases you might want to read about!
Install
Install your Griznog from pypi
pip install griznog
or install from the repository directly:
$ git clone https://github.com/vsoch/griznog
$ cd griznog
$ python setup.py install
Command Line Usage
The main utility of Griznog is to speak:
$ griznog --help
usage: griznog [-h] [--version] {speak} ...
Griznog, captured in code
optional arguments:
-h, --help show this help message and exit
--version print the version and exit.
actions:
actions for Griznog
{speak} griznog actions
speak ask Griznog to speak his wisdom.
and specifically, we can ask for a random quote (no arguments), filter to a
topic (--topic <topic>
), disable color, or have him dump all of his wisdom
(with some pause between quotes).
$ griznog speak --help
usage: griznog speak [-h] [--topic TOPIC] [--pause PAUSE] [--dump]
[--no-color]
optional arguments:
-h, --help show this help message and exit
--topic TOPIC subset to particular topic.
--pause PAUSE seconds to allow Griznog to breathe between spurts (default 3
seconds).
--dump Just hear everything. Optionally set a --pause (seconds)
--no-color disable color
1. Random Quote
$ griznog speak
griznog hopes everyone has an anxiety attack and leaves him alone with 10 pizzas.
--Griznog 11/28/2018
2. Quote filtered to topic
$ griznog speak --topic pizza
We are fairly simple creatures, throw us the occasional beer, donut and pizza, send us hardware (in quantities that are powers of 2!) and lock us in the basement and we are happy.
--Griznog 8/31/2018
3. Quote Dump
$ griznog speak --dump
Disable color (also works for previously mentioned commands)
$ griznog speak --dump --no-color
Python Usage
1. Create your Griznog
First, create your Griznog.
from griznog import Griznog
> human = Griznog()
2. Wisdom
Ask your Griznog for a random point of wisdom!
> human.speak()
The sad reality is that the universe doesn't work this way. In the same way we carry DNA and RNA that is billions of years old, we are stuck with legacy code. Organisms aren't rewarded by evolution for making giant rewrites, and programmers aren't rewarded by HR for making things simpler or starting over fresh.
--Griznog 10/11/2018
Optionally you can filter to a particular topic.
> human.speak(topic='container')
I said they were surprisingly powerful, I didn't mean container fanbois couldn't screw them up.
--Griznog 9/13/2018
For an entertaining stream of wisdom, you know what to do:
> human.dump()
You can also dump with a filtered set:
> human.dump(topic='container')
For any of the above, if your terminal doesn't support color, just disable it.
> human.speak(add_color=False)
Container Usage
Griznog is... trapped in a container!
docker run -it quay.io/vanessa/griznog speak
job security. I get scared when any of this works too well.
--Griznog 4/12/2018
Do you have a question? Or want to suggest a feature to make it better? Please open an issue!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file griznog-0.0.11.tar.gz
.
File metadata
- Download URL: griznog-0.0.11.tar.gz
- Upload date:
- Size: 54.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ad049520323d3e2dfdafacce82064f08113ddf367ebd34cf2de41764d3a13d |
|
MD5 | ecd560ea66cb6bbab5a48765d1761448 |
|
BLAKE2b-256 | 3a1582b1ba5b9def7c594a3fd41b8c04436322b3afdc882f4d70bfddf1142ca1 |