Overview
ansicon is a Python wrapper for loading Jason Hood’s ANSICON
Installation
$ pip install ansicon
Usage
import ansicon
# Load ansicon
ansicon.load()
# Have fun with terminal codes
print(u'\x1b[32mGreen\x1b[m')
# Unload ansicon
ansicon.unload()
# Check if ansicon is loaded
if not ansicon.loaded():
ansicon.load()
if ansicon.loaded():
ansicon.unload()
Release files for ansicon 1.89.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansicon-1.89.0.tar.gz | 67.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansicon-1.89.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size:131.0 kB
Release files / ansicon-1.89.0.tar.gz
| Download URL | ansicon-1.89.0.tar.gz |
|---|---|
| Size | 67.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4d039def5768a47e4afec8e89e83ec3ae5a26bf00ad851f914d1240b444d2b1
|
|
BLAKE2b-256 checksum How to use checksums |
b6e21c866404ddbd280efedff4a9f15abfe943cb83cde6e895022370f3a61f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / ansicon-1.89.0-py2.py3-none-any.whl
| Download URL | ansicon-1.89.0-py2.py3-none-any.whl |
|---|---|
| Size | 63.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f1def52d17f65c2c9682cf8370c03f541f410c1752d6a14029f97318e4b9dfec
|
|
BLAKE2b-256 checksum How to use checksums |
75f9f1c10e223c7b56a38109a3f2eb4e7fe9a757ea3ed3a166754fb30f65e466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|