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
colorcommand.
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:
- Fork the repository.
- Create a feature branch.
- Make your changes.
- 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
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 Distribution
Built Distribution
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a054e6f8813ecf1be53ef4388eb113714660d4e84da631d6d19e97f31cea16
|
|
| MD5 |
f5e77ad599200e5432d2aaa97920dcb2
|
|
| BLAKE2b-256 |
a7dc89972158f1f9c389bad77d185f7cdadcd29ec44ff37fb41976c7a957b09c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52021b1b6335d98cbe95d0210b5a436f73035745616291419eff2c1c2e1e17c8
|
|
| MD5 |
a75ac9f1b70695226b7863d74e2bb9df
|
|
| BLAKE2b-256 |
06cda3adc5cc509a32c7a7fa87855366e6350a3003f2f41c2ce323f58b639eb3
|