anotherhadi / oxansi

A Handy Python package to Use ANSI Escape Sequences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0xAnsi

A handy package to use ansi escape sequences without having to know all possible sequences by heart

Installation :

From pip :

pip3 install oxansi

From source :

git clone https://github.com/0x68616469/oxansi/

Example :

from oxansi import Long as ansi

# Print "/!\ ERROR : " in red
print(f"{ansi.red}/!\\ ERROR : {ansi.reset}404 Not found")

# Print "Hello World" in cyan with white background
print(f"{ansi.background.white}{ansi.cyan}Hello World")

Follow me

About

A Handy Python package to Use ANSI Escape Sequences


Languages

Language:Python 100.0%