hexor
Coloring texts and their backgrounds in command line interface (cli), with rgb or hex types.
What it is and what it does
Hexor is a lightweight CLI text coloring library that lets you style terminal output with foreground and background colors. You instantiate a hexor object, then call its `.c()` method with text and color values in hex (e.g., #ff0000) or RGB (e.g., 255,0,0 or rgb(255,0,0)) formats. The object can either print the styled text directly or return it as a string for further use.
The package has no external runtime dependencies and installs as a pure Python wheel. It's designed for developers who need simple, flexible color control in command-line applications without the complexity of larger terminal libraries. The API is minimal: create an instance with an optional return flag, then call `.c()` with text and one or two color arguments.
Use it for:
- Add colored output to CLI tools and scripts for better readability and visual hierarchy
- Highlight errors, warnings, and success messages in terminal applications with distinct colors
- Create colored logs or status displays where text and background colors improve information scanning
- Build interactive CLI menus or prompts with colored text to guide user attention
- Generate colored terminal reports or dashboards that mix multiple text and background colors
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Applies colored text and background styling to CLI output using hex or RGB color formats, then prints or returns the formatted string.
Yes, if you need simple CLI text coloring without dependencies. The package is actively maintained, has no known vulnerabilities, and installs cleanly with zero runtime dependencies. The Apache license is permissive. The main caveat is that the last release was 2023-06-06; if you need cutting-edge features or fixes, verify the repository hasn't stalled despite recent commits.
Install
hexor on PyPI
pip
pip install hexoruv
uv add hexorpoetry
poetry add hexorInstalling hexor
Before you install
Low install friction with no runtime dependencies. Last release was 2023-06-06 but repository remains active with recent commits as of 2026-08-10, suggesting ongoing maintenance despite the gap between releases.
License in practice
Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install hexor
from hexor import hexor
p = hexor()
p.c("Text is red", "#ff0000")
p.c("Red text, blue background", "#ff0000", "#1a73e8")
Verify before relying
- Whether the package works with Python versions beyond 3.11 (description claims support through 3.11 but requires_python is unspecified)
Package facts
| License | Apache Software License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,165 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 159,295/month — #10,700 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: hexor-0.0.15-py3-none-any.whl
Keywords: yasserbdj96, python, hexor, texts, colors., hex, background, rgb
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
colorfulColorful applies ANSI color and text styling to…
permissive · top 5,000 on PyPI
click-help-colorsAdds color customization to Click command-line…
permissive · top 5,000 on PyPI
crayonsCrayons provides colored text output for…
permissive · top 15,000 on PyPI
coloredColored provides ANSI/VT100 escape sequences…
permissive · top 5,000 on PyPI
termcolorAdds ANSI color and text formatting (bold,…
permissive · top 1,000 on PyPI
ansicolorsEmbeds ANSI color and style codes into Python…
permissive · top 5,000 on PyPI
colourConverts between and manipulates color…
permissive · top 5,000 on PyPI
simple-colorsAdds colored and styled text output to terminal…
unclear · top 15,000 on PyPI
cleoCleo builds command-line interfaces with…
permissive · top 1,000 on PyPI
webcolorsConverts and normalizes HTML and CSS color…
permissive · top 1,000 on PyPI