High-performance Rust implementation of colorama - cross-platform colored terminal text
Project description
colorama-rs
High-performance Rust implementation of colorama - cross-platform colored terminal text.
Overview
colorama-rs is a Rust-powered Python library for producing colored terminal text and cursor positioning, offering cross-platform support with enhanced performance.
Installation
pip install colorama-rs
Features
- 🚀 High Performance: Built with Rust for maximum speed
- 🎨 Colored Output: Easy-to-use API for colored text
- 🖥️ Cross-Platform: Works on Windows, Linux, and macOS
- 🔄 Compatible: Drop-in replacement for colorama
- 🐍 Python 3.8+: Supports Python 3.8 through 3.14
- 🌍 Pre-built Wheels: Available for all major platforms
Quick Start
from colorama_rs import Fore, Back, Style
# Print colored text
print(Fore.RED + 'Red text')
print(Fore.GREEN + 'Green text')
print(Back.BLUE + 'Blue background')
print(Style.BRIGHT + 'Bright text' + Style.RESET_ALL)
# Combine colors
print(Fore.YELLOW + Back.BLUE + 'Yellow on blue' + Style.RESET_ALL)
Available Colors
Foreground Colors
- BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
- LIGHTBLACK_EX, LIGHTRED_EX, LIGHTGREEN_EX, etc.
Background Colors
- Same as foreground colors but with
Back.prefix
Styles
- BRIGHT, DIM, NORMAL, RESET_ALL
Cross-Platform Support
colorama-rs automatically handles Windows console API calls and ANSI codes on other platforms, providing a consistent experience across all operating systems.
Performance
Built with Rust, colorama-rs offers improved performance over the pure Python implementation, especially for applications with heavy terminal output.
License
BSD License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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 Distributions
Built Distributions
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 colorama_rs-0.1.1-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 124.8 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78f4abe582768a5c4b08b2c0a467358a080034943dd7ae5e0565f7d3ca270c09
|
|
| MD5 |
b51644c68eae2f1b9b53a7d69f87e217
|
|
| BLAKE2b-256 |
9e87aad3d49b98b750dd48f1b5caf8b12170989c38cdf711568b38473b540ef0
|
File details
Details for the file colorama_rs-0.1.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 124.8 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c24e4c4f2d1bd90c34c0ac6a19a41256d601e3ecda9478a66eefe56cbea8ba68
|
|
| MD5 |
91702c48983ff0c1984f23bad9af4c2b
|
|
| BLAKE2b-256 |
87981930b7482d3464aac8ec8df6a5471a06bd80e6892c6a0471f484a47c678b
|
File details
Details for the file colorama_rs-0.1.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 125.2 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fb1d0e074a20a48eaa1fc963dc2531fa4846321f9429393bc74a6703dd4cf41
|
|
| MD5 |
dca29f17efb4546a1f175a3afb1d090f
|
|
| BLAKE2b-256 |
08e31794bcf7c657dafd2a00881d0e28062117e7dd5e969da59cad6449e3561e
|
File details
Details for the file colorama_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 268.5 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3576dec0881e38a8a2a4cc10012f20b69700056e8c731f0cf26098ea59b25c2a
|
|
| MD5 |
026ef298167dbc7559932ee725692592
|
|
| BLAKE2b-256 |
2cacc42280853d2c835cfc7bf34b621a2763b9ff9ea341d0ab1c3648e60ebd70
|
File details
Details for the file colorama_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 227.7 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
270ea45e0ceab68b658db2441fe2c3bafb93a2b2aa479fd22d37f4ffeb4c0b16
|
|
| MD5 |
fb5ac3b98c66318e45052996fc46e0d7
|
|
| BLAKE2b-256 |
067ca4c4a8ad00fe85037ce392a661b99d8b160dbd8f1acb8a520b96575c635f
|
File details
Details for the file colorama_rs-0.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 125.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac738433dee7aaee74bf4ef632a98fecdbeb7da0cc627b89a7c1eb0989ad6a6c
|
|
| MD5 |
31e26e290eeca3ac64f0aff0cc4a0311
|
|
| BLAKE2b-256 |
941ae108f4146e8543aab83941bc62eaff71d18998eb91c84109b985b6cd5c89
|
File details
Details for the file colorama_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 268.3 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
556380f32ac58a969707a1960c66572f32ac41b0032333927a5dd4f2650e04ec
|
|
| MD5 |
9b6d49a62f097d91660af44e6058eda6
|
|
| BLAKE2b-256 |
afb802468589671623c4aad4df922364dd3bec462d8f42ec47f829c99310da44
|
File details
Details for the file colorama_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 228.2 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
514da530b8bc707e0cae94300b4c88ca3d7ea29832d4ecbe2efcd7201ba7aadc
|
|
| MD5 |
ceb3fa5b2244bdda3041611008b7c7f9
|
|
| BLAKE2b-256 |
6bcb6846ebef10c3f6e246f90afb8a3e5de6361a127478a5427d00114d6bc260
|
File details
Details for the file colorama_rs-0.1.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 128.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24c316c31923d5fc13953683ddee80982b538a48253a57b969246a0360145daf
|
|
| MD5 |
5f2d2ca784855f47774b2ac02371efe2
|
|
| BLAKE2b-256 |
6f9cc8c5b72960793009fecda7363e7c11427f826c22fa51a119558a53b4783f
|
File details
Details for the file colorama_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 268.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b7cb95904092ab7eee81036333d2237005305668308906cee9447fb2e885c79
|
|
| MD5 |
6671e04576bd7041e0ca067a1f11f5d8
|
|
| BLAKE2b-256 |
3c9c510b164769c2f8496297bf6c8049ad0ab6354439b1b9e32be587349b26d4
|
File details
Details for the file colorama_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 228.3 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76936692cadd7fad7c3156e4f0c6eff60bc66e0f9af8583a7671901e2a584f77
|
|
| MD5 |
38b06fefa0b6b94656a62f01103957e1
|
|
| BLAKE2b-256 |
e45510b7d491d71afae7f8858c7b392c5ee12eb0fcda1a7d6b32d3b34db1e503
|
File details
Details for the file colorama_rs-0.1.1-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 130.6 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fedd1e2adc6bcdf3dfb9dd9dbaf0c5cd7496cbb3203484cb650df41a6170a98f
|
|
| MD5 |
6c39e90d1300518f7387fab9677e5a03
|
|
| BLAKE2b-256 |
fc3cda70a9ba2066b92baefacb4e6cd947fc1a5699d8a60471d91a0ff154bb6a
|
File details
Details for the file colorama_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 269.2 kB
- Tags: CPython 3.9, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abbda7874feaf968abe00a1db1040c70a86ccfc09b172b4809dc53263627b4b
|
|
| MD5 |
20bd1444c4d6920919c631925a5c6a71
|
|
| BLAKE2b-256 |
74de4767d2b507b53c9d7e47d6d05504cc90f52cec82c5ce9a5664d695c588a6
|
File details
Details for the file colorama_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 229.0 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4795f19b704970f8547e17dd92076c9217eb0d45ac40e0607522f1dcec9a2900
|
|
| MD5 |
91a674ae9a4090599333961140a23fdc
|
|
| BLAKE2b-256 |
48c335cc574b9fb609f9dce4e044027782ede97acfcf6bef141d7cfa1af344b9
|
File details
Details for the file colorama_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 269.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef5e08fef35a2a4cacc26131c32ec94f44b7957e647f8f71cce48cf5f65e1b9
|
|
| MD5 |
91b859d9f4a80769c6a683d42f2fea82
|
|
| BLAKE2b-256 |
541dd1781643077d9e543e3755368fa6143cddbec78fbee3ce9519ef12b63493
|
File details
Details for the file colorama_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: colorama_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 228.8 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd5e2726de0d5800f6426e280767682b57a1ed05e6c00a0478ef510c84709372
|
|
| MD5 |
dc3805d5ca92dc18b24935b70709d479
|
|
| BLAKE2b-256 |
0d7fc71c674cb61bd3c221874daf10d1f300982d24c543be1197c2dd9f902f30
|