Giter Club home page Giter Club logo

Griznog

PyPI version GitHub actions status

asciicast

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!

griznog's Projects

warewulf icon warewulf

Warewulf is a stateless and diskless container operating system provisioning system for large clusters of bare metal and/or virtual systems.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.