Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

colorama_rs-0.1.1-cp314-cp314-win_amd64.whl (124.8 kB view details)

Uploaded CPython 3.14Windows x86-64

colorama_rs-0.1.1-cp313-cp313-win_amd64.whl (124.8 kB view details)

Uploaded CPython 3.13Windows x86-64

colorama_rs-0.1.1-cp312-cp312-win_amd64.whl (125.2 kB view details)

Uploaded CPython 3.12Windows x86-64

colorama_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl (268.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

colorama_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (227.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

colorama_rs-0.1.1-cp311-cp311-win_amd64.whl (125.9 kB view details)

Uploaded CPython 3.11Windows x86-64

colorama_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl (268.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

colorama_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (228.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

colorama_rs-0.1.1-cp310-cp310-win_amd64.whl (128.1 kB view details)

Uploaded CPython 3.10Windows x86-64

colorama_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl (268.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

colorama_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (228.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

colorama_rs-0.1.1-cp39-cp39-win_amd64.whl (130.6 kB view details)

Uploaded CPython 3.9Windows x86-64

colorama_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl (269.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

colorama_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl (229.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

colorama_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl (269.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

colorama_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl (228.8 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file colorama_rs-0.1.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 78f4abe582768a5c4b08b2c0a467358a080034943dd7ae5e0565f7d3ca270c09
MD5 b51644c68eae2f1b9b53a7d69f87e217
BLAKE2b-256 9e87aad3d49b98b750dd48f1b5caf8b12170989c38cdf711568b38473b540ef0

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c24e4c4f2d1bd90c34c0ac6a19a41256d601e3ecda9478a66eefe56cbea8ba68
MD5 91702c48983ff0c1984f23bad9af4c2b
BLAKE2b-256 87981930b7482d3464aac8ec8df6a5471a06bd80e6892c6a0471f484a47c678b

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3fb1d0e074a20a48eaa1fc963dc2531fa4846321f9429393bc74a6703dd4cf41
MD5 dca29f17efb4546a1f175a3afb1d090f
BLAKE2b-256 08e31794bcf7c657dafd2a00881d0e28062117e7dd5e969da59cad6449e3561e

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3576dec0881e38a8a2a4cc10012f20b69700056e8c731f0cf26098ea59b25c2a
MD5 026ef298167dbc7559932ee725692592
BLAKE2b-256 2cacc42280853d2c835cfc7bf34b621a2763b9ff9ea341d0ab1c3648e60ebd70

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 270ea45e0ceab68b658db2441fe2c3bafb93a2b2aa479fd22d37f4ffeb4c0b16
MD5 fb5ac3b98c66318e45052996fc46e0d7
BLAKE2b-256 067ca4c4a8ad00fe85037ce392a661b99d8b160dbd8f1acb8a520b96575c635f

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ac738433dee7aaee74bf4ef632a98fecdbeb7da0cc627b89a7c1eb0989ad6a6c
MD5 31e26e290eeca3ac64f0aff0cc4a0311
BLAKE2b-256 941ae108f4146e8543aab83941bc62eaff71d18998eb91c84109b985b6cd5c89

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 556380f32ac58a969707a1960c66572f32ac41b0032333927a5dd4f2650e04ec
MD5 9b6d49a62f097d91660af44e6058eda6
BLAKE2b-256 afb802468589671623c4aad4df922364dd3bec462d8f42ec47f829c99310da44

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 514da530b8bc707e0cae94300b4c88ca3d7ea29832d4ecbe2efcd7201ba7aadc
MD5 ceb3fa5b2244bdda3041611008b7c7f9
BLAKE2b-256 6bcb6846ebef10c3f6e246f90afb8a3e5de6361a127478a5427d00114d6bc260

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 24c316c31923d5fc13953683ddee80982b538a48253a57b969246a0360145daf
MD5 5f2d2ca784855f47774b2ac02371efe2
BLAKE2b-256 6f9cc8c5b72960793009fecda7363e7c11427f826c22fa51a119558a53b4783f

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8b7cb95904092ab7eee81036333d2237005305668308906cee9447fb2e885c79
MD5 6671e04576bd7041e0ca067a1f11f5d8
BLAKE2b-256 3c9c510b164769c2f8496297bf6c8049ad0ab6354439b1b9e32be587349b26d4

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76936692cadd7fad7c3156e4f0c6eff60bc66e0f9af8583a7671901e2a584f77
MD5 38b06fefa0b6b94656a62f01103957e1
BLAKE2b-256 e45510b7d491d71afae7f8858c7b392c5ee12eb0fcda1a7d6b32d3b34db1e503

See more details on using hashes here.

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

Hashes for colorama_rs-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fedd1e2adc6bcdf3dfb9dd9dbaf0c5cd7496cbb3203484cb650df41a6170a98f
MD5 6c39e90d1300518f7387fab9677e5a03
BLAKE2b-256 fc3cda70a9ba2066b92baefacb4e6cd947fc1a5699d8a60471d91a0ff154bb6a

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7abbda7874feaf968abe00a1db1040c70a86ccfc09b172b4809dc53263627b4b
MD5 20bd1444c4d6920919c631925a5c6a71
BLAKE2b-256 74de4767d2b507b53c9d7e47d6d05504cc90f52cec82c5ce9a5664d695c588a6

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4795f19b704970f8547e17dd92076c9217eb0d45ac40e0607522f1dcec9a2900
MD5 91a674ae9a4090599333961140a23fdc
BLAKE2b-256 48c335cc574b9fb609f9dce4e044027782ede97acfcf6bef141d7cfa1af344b9

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 eef5e08fef35a2a4cacc26131c32ec94f44b7957e647f8f71cce48cf5f65e1b9
MD5 91b859d9f4a80769c6a683d42f2fea82
BLAKE2b-256 541dd1781643077d9e543e3755368fa6143cddbec78fbee3ce9519ef12b63493

See more details on using hashes here.

File details

Details for the file colorama_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for colorama_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd5e2726de0d5800f6426e280767682b57a1ed05e6c00a0478ef510c84709372
MD5 dc3805d5ca92dc18b24935b70709d479
BLAKE2b-256 0d7fc71c674cb61bd3c221874daf10d1f300982d24c543be1197c2dd9f902f30

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