Griznog, eternally trapped in Python, and a container for forever access to his wisdom.
MPL-2.0 License
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 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
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
$ griznog speak
griznog hopes everyone has an anxiety attack and leaves him alone with 10 pizzas.
--Griznog 11/28/2018
$ 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
$ griznog speak --dump
Disable color (also works for previously mentioned commands)
$ griznog speak --dump --no-color
First, create your Griznog.
from griznog import Griznog
> human = Griznog()
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)
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!