Skip to main content

Add your description here

Project description

Ansi Terminal

Author License Python

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 🌱

  1. Clone the repository:

    git clone https://...git
    
  2. Create your feature branch

    git checkout develop
    git checkout -b feature/YourFeature
    
  3. Commit your changes:

    git commit -m "Add your feature description"
    
  4. Push your branch to GitHub:

    git push origin feature/YourFeature
    
  5. Open a merge request to the develop branch.

For major changes, please open an issue first to discuss what you would like to change.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansi_terminal-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansi_terminal-0.2.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for ansi_terminal-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cb19e2e5461bf9e613f0f06dfcf509a0367e878c4971299827748f2cc0f8c0c8
MD5 0bf5a19956c06d1f2f5d2fca898f9d7f
BLAKE2b-256 bde12f06aeecdc0f36894abbe44aed6e3feb26a7df390060de2c1a098fc06b1d

See more details on using hashes here.

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

Hashes for ansi_terminal-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb81f9952361a1858bb4ae29402e0148cc27a542b5ae6037d80dd5c65ec16be8
MD5 af55a2f0b061ba5d16e9d894aa3bb01a
BLAKE2b-256 947909792a4d432d53481677e421a5f5416b4b545ead4545de8dc0f3d5a0c018

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page