Add your description here
Project description
Ansi Terminal
A lightweight Python library for styling and coloring terminal output using ANSI escape codes. Easily print text in bold, underlined, or colored formats across supported terminals.
Features 🪴
- Foreground and background colors
- Text styles: bold, italic, underline, strikethrough
- RGB color support (24-bit color)
- Nestable and composable styles
- Reset and clear formatting helpers
- Cross-platform compatibility (Windows via colorama)
Installation 💻
pip install ansi-terminal
Example 🌻
from ansi_terminal import ansi_print, Color, fg, bg, style
ansi_print(f", Color, fg, bg, style", color=Color(fg.red, bg.black, style.italic))
Contributing 🌱
-
Clone the repository:
git clone https://...git
-
Create your feature branch
git checkout develop git checkout -b feature/YourFeature
-
Commit your changes:
git commit -m "Add your feature description"
-
Push your branch to GitHub:
git push origin feature/YourFeature
-
Open a merge request to the
developbranch.
For major changes, please open an issue first to discuss what you would like to change.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansi_terminal-0.2.0.tar.gz.
File metadata
- Download URL: ansi_terminal-0.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb19e2e5461bf9e613f0f06dfcf509a0367e878c4971299827748f2cc0f8c0c8
|
|
| MD5 |
0bf5a19956c06d1f2f5d2fca898f9d7f
|
|
| BLAKE2b-256 |
bde12f06aeecdc0f36894abbe44aed6e3feb26a7df390060de2c1a098fc06b1d
|
File details
Details for the file ansi_terminal-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ansi_terminal-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb81f9952361a1858bb4ae29402e0148cc27a542b5ae6037d80dd5c65ec16be8
|
|
| MD5 |
af55a2f0b061ba5d16e9d894aa3bb01a
|
|
| BLAKE2b-256 |
947909792a4d432d53481677e421a5f5416b4b545ead4545de8dc0f3d5a0c018
|