Python wrapper for loading Jason Hood's ANSICON
Project Links
Meta
Author: Avram Lubkin
Maintainer: Avram Lubkin
Classifiers
Development Status
- 5 - Production/Stable
Environment
- Console
Intended Audience
- Developers
License
- OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Operating System
- Microsoft :: Windows
Programming Language
- Python
- Python :: 2.7
- Python :: 3.4
- Python :: 3.5
- Python :: 3.6
- Python :: 3.7
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Topic
- Utilities
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()
Wheel compatibility matrix
Files in release
No dependencies