Skip to main content

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

Project description

๐ŸŽจ 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 (a โ†’ z)

  • ๐Ÿ–ฅ๏ธ 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.

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

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.

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