Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am housemaister on github.
  • I am housemaister (https://keybase.io/housemaister) on keybase.
  • I have a public key whose fingerprint is 17B9 1A24 62A0 AC48 B40F 6B00 83B4 8F40 1052 3FC9

To claim this, I am signing this object:

import os
import subprocess
class Colorcodes(object):
"""
Provides ANSI terminal color codes which are gathered via the ``tput``
utility. That way, they are portable. Color codes are initialized to
empty strings. If the output is being redirected or if there occurs
any error with ``tput``, keep empty strings.