sepiidae

The small library for colored output in Python.


License
MIT
Install
pip install sepiidae==0.0.2

Documentation

Description

Sepiidae - is a very small library for colored output in Python.


Installation

➜  ~ pip install sepiidae

Usage

from sepiidae import success, error, warning

def auth(username, password):
    if username == 'admin' and len(password) > 13:
        print(success('Hello, {}. You are logged in'.format(username)))
    elif 'adm' in username:
        print(warning('Almost right!'))
    else:
        print(error('Incorrect username or password'))

auth('lk-geimfari', 'password')
auth('adms', 'sdg45fsfgf')
auth('admin', '12345678901234')

or

from sepiidae import sepiidae

irish_text =  sepiidae('Beer', green=True)
russian_text = sepiidae('Bear', red=True)
us_text = sepiidae('Eagle', blue=True)

print(irish_text)
print(us_text)
print(russian_text)

Runtime

Python 2.7 / Python 3.x