Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
Artur Paiva edited this page Dec 12, 2015 · 12 revisions

Welcome to the mprint,

mprint is a Python module who allows easly coloring and formatting for your CLI based text.

Requirements

Any Unix or DOS based console who support color output via ANSI Escape Sequencies and Python 2.7 or above.

Windows/DOS Dependencies

Since Windows-based systems does not have support for ANSI Escape Sequencies, mprint has the 'colorama' package as dependecy for Windows-based terminals, on Unix Systems, there's no dependecy.

Instalation

mprint acts like any other Python package, just clone and:

python ./setup.py install

You can also install the master/stable version using pip/easy_install

pip install mprint

Usage

The main output functions are in the mprint module, so, for you to use, just import it like:

from mprint import mprint

Then you can use the functions like mprint.mclear() or mprint.mprintln("Hello World!").

from mprint.mprint import *

Then you can use the functions like mclear() or mprintln("Hello World!").

Help

You can start by checking our [Markup Language] (https://github.com/h0m3/python-mprint/wiki/Markup-Language) or see what Functions are avaliable for you.

If you still don't know how to use it, check our [Examples] (https://github.com/h0m3/python-mprint/wiki/Markup-Examples), they are very simple and direct.

mprint also has an input module, called minput, [check it out] (https://github.com/h0m3/python-mprint/wiki/Getting-information-with-minput).