Skip to main content
Chromite

Chromite

GitHub release GitHub license Pypi downloads Commit activity Repo size GitHub All Releases

✨ About

Chromite is a lightweight, zero-dependency Python library for building rich terminal user interfaces (TUI). It offers an elegant, object-oriented toolkit for styling output, handling interactive input, and rendering custom UI components.

An optimized library that simplifies writing code and helps with the tasks provided.

📦 Installation

pip install Chromite

From source

git clone https://github.com/NastyaNoTamashii/Chromite
cd Chromite
pip install -e .

🚀 Quick start

from Chromite import Color, Style, Write

Write("Hello, Chromite!", compose=[Color.Green, Style.Bold]).display()

🎨 Inline markup

Use $style$ for colors/styles and :emoji: for emoji right inside the text. $reset$ clears everything.

from Chromite import Write

Write("$bold$Build passed$reset$ :white_check_mark: $hex#FFFF00$2 warnings$reset$ :warning:").display()
Write("$bg_red$$white$ ERROR $reset$ disk is full").display()

🌈 Colors

from Chromite import Color, ColorBG, Write

Write("From HEX", compose=Color.hex("#ff5733")).display()
Write("Red background", compose=ColorBG.Red).display()
Write("256-color palette", compose=Color.x256(208)).display()

📋 Lists

from Chromite import List, Color, Style

List.numbered(
    ["Install", "Import", "Enjoy"],
    compose=Color.Cyan,
    bullet_compose=Style.Bold,
).display()

List.pointed(["fast", "no dependencies"], bullet="→", bullet_compose=Color.Green).display()

📊 Tables

from Chromite import Table

data = [["Name", "Stars"], {"Chromite": "5", "Other": "10"}]
print(Table.createTable(data, header_separator=True))
    Name | Stars
---------+------
Chromite |     5
   Other |    10

⌨️ Input

from Chromite import Read, Color

name = Read("Your name > ", compose=Color.Blue, value_compose=Color.LightBlue).execute()
pin = Read("PIN > ", type="pin").execute()   # also: "password", "hidden", "int"
print(f"Hi {name}!")


If a feature doesn't work, check if your console supports it.


Any question? Contact me in discord uwawuwa

Made with ❤️ by NastyaNoTamashii

⬆ Back to top

Metadata

Release files for Chromite 0.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Chromite 0.6.6
File Size Uploaded
chromite-0.6.6.tar.gz 39.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Chromite 0.6.6
File Interpreter ABI Platform
chromite-0.6.6-py3-none-any.whl Python 3 none any Details

Total release size: 82.8 kB

Release files / chromite-0.6.6.tar.gz

Download URL chromite-0.6.6.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b80b2098569a79778e51064abd7eb245cd28add0a5296457b863aa9f828c40a4
BLAKE2b-256 checksum
How to use checksums
8611730c1ed82e2438542d97872c89d90dd4ae85f004e75aabdb81a2eda9efc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / chromite-0.6.6-py3-none-any.whl

Download URL chromite-0.6.6-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7b4e8bdfd5e6dfdc7d7a8261b66e5a36346a03dae46bd0efb050892338ba436
BLAKE2b-256 checksum
How to use checksums
5482d8582268fc1ab848a082cadf9482b5c3796b5f6aa8da321b87d516ea1212
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.6.7

2 release files

This release

0.6.6 This release

2 release files

0.6.5

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page