Skip to main content

🎨 colorak

A cross-platform terminal color utility inspired by the Windows color command.

colorak is a lightweight Python command-line tool that provides predefined terminal color presets using ANSI escape codes. It is designed to work across multiple terminal environments while offering a simple and familiar interface.


✨ Features

  • 🎨 26 predefined color presets (az)

  • 🖥️ Cross-platform support

    • Windows Terminal
    • PowerShell
    • Git Bash
    • Linux Terminal
    • macOS Terminal
    • Termux
  • 📋 List all available presets

  • 📦 Easy installation with pip

  • 🧪 Unit tested

  • 🏗️ Clean and modular project structure

  • ⚡ No external runtime dependencies


📦 Installation

Clone the repository:

git clone https://github.com/anurudhhakumar30-source/colorak.git
cd colorak

Install in editable mode:

python -m pip install -e .

🚀 Usage

Show Help

colorak help

or

colorak --help

Show Version

colorak version

or

colorak --version

Show All Presets

colorak list

Use a Color Preset

colorak a
colorak b
colorak c

...

colorak z

Reset Terminal Colors

colorak reset

📂 Project Structure

colorak/
│
├── colorak/
│   ├── __init__.py
│   ├── cli.py
│   ├── colors.py
│   ├── utils.py
│   └── version.py
│
├── tests/
│   └── test_cli.py
│
├── README.md
├── LICENSE
├── pyproject.toml
└── .gitignore

🧪 Running Tests

Run all unit tests:

python -m unittest discover -s tests

🛠️ Technologies Used

  • Python 3
  • argparse
  • dataclasses
  • unittest
  • setuptools

📖 Version

Current development version:

0.1.0

The first stable public release will be:

1.0.0

🗺️ Roadmap

Version 1.0

  • Project structure
  • Modular architecture
  • 26 predefined color presets
  • Help command
  • Version command
  • List command
  • Reset command
  • Unit tests
  • Cross-platform ANSI support

Future Versions

Possible future enhancements include:

  • RGB color support
  • HEX color support
  • Custom user themes
  • Configuration file support
  • Additional preset collections

🤝 Contributing

Contributions, bug reports, and suggestions are welcome.

If you'd like to contribute:

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Submit a Pull Request.

📄 License

This project is licensed under the MIT License.

See the LICENSE file for details.


👨‍💻 Author

Anuruddha Kumar

GitHub: https://github.com/anurudhhakumar30-source


⭐ Support

If you find this project useful:

  • ⭐ Star the repository
  • 🐞 Report bugs
  • 💡 Suggest new ideas
  • 🤝 Contribute improvements

Your support helps the project grow.

Download files

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

Source Distribution

colorak-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

colorak-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file colorak-1.0.0.tar.gz.

File metadata

  • Download URL: colorak-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for colorak-1.0.0.tar.gz
Algorithm Hash digest
SHA256 16a054e6f8813ecf1be53ef4388eb113714660d4e84da631d6d19e97f31cea16
MD5 f5e77ad599200e5432d2aaa97920dcb2
BLAKE2b-256 a7dc89972158f1f9c389bad77d185f7cdadcd29ec44ff37fb41976c7a957b09c

See more details on using hashes here.

File details

Details for the file colorak-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: colorak-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for colorak-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52021b1b6335d98cbe95d0210b5a436f73035745616291419eff2c1c2e1e17c8
MD5 a75ac9f1b70695226b7863d74e2bb9df
BLAKE2b-256 06cda3adc5cc509a32c7a7fa87855366e6350a3003f2f41c2ce323f58b639eb3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 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