skillfed

hexor

Coloring texts and their backgrounds in command line interface (cli), with rgb or hex types.

hexor v0.0.15 159.3K downloads/30d#10,700 on PyPI4
Permissive license Apache Software License Active released

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 hexor

uv

uv add hexor

poetry

poetry add hexor

Installing 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

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Build ToolsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

cli text coloringterminal color outputhex rgb terminal stylingcolored command line textansi color formattingbackground color cliterminal text styling
cli-stylingterminal-colors

More Libraries packages