Metadata-Version: 2.1
Name: spiffyline
Version: 1.0
Summary: Spiff up your CLI with color, formatting, and utilities
Home-page: https://github.com/snakeyworm/spiffyline
Author: Caleb Loera
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.6
Description-Content-Type: text/markdown


## Project Description

spiffyline is a terminal utility package that provides formatting,
coloring to terminal output via abstraction of ANSI SGR codes.

Features:

* Abstraction of ANSI SGR codes for ease of use
* Predefined colors for quick formatting
* <code>Theme</code> class to combine SGR codes to reuse
* Utility methods to make adding formatting and color simple and concise

Ussage:

    from spiffyline.theme import Theme
    from spiffyline.logger import Logger

    # Theme with bold and red text
    my_theme = Theme.BOLD + Theme.fg_color( 230, 0, 0 )

    print(  my_theme + "Hello World!" + Theme.RESET )

    # One can also use the Logger class for more concise code

    l = Logger()
    l.log( "Hello World!", my_theme )

    # Or to record certain logging events

    l.log( "Error", my_theme, flags=[ "error", ] )
    print( l.events[ "error" ] ) # => 1

Please download the [API Documentation](https://github.com/snakeyworm/spiffylinetree/master/docs) from GitHub


