Registry / web-framework / bx-py-utils

bx-py-utils

JSON →
library118pypypiunverified

A collection of various Python utility functions, currently at version 118. It provides helpers for CLI, color output, dictionaries, Django, HTML, and more. Requires Python >= 3.11. Released sporadically on PyPI.

pip install bx-py-utils
INSTALL
IMPORT
SIG · BX-PY-UTILS
B
bx-py-utils
web-frameworkpythonv118
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

red_sym
from bx_py_utils import red_sym
from bx_py_utils import red_sym

Import and use color utilities. The NO_COLOR environment variable disables ANSI coloring.

from bx_py_utils import red_sym, green_sym print(red_sym('Error')) # prints red colored text with '✘' symbol print(green_sym('OK')) # prints green colored text with '✔' symbol # Output without colors (e.g., in CI): import os os.environ['NO_COLOR'] = '1' print(red_sym('still plain text')) # no coloring
Debug
Known issues
gotchaThe version number is an integer (118) incremented for every release, not semantic versioning. Breaking changes can occur at any minor bump.
fix
Pin to a specific version and review changelog before upgrading.
affects: all
gotchaSome utilities rely on optional dependencies like Django, colorama. Missing them causes ImportError at runtime if you directly access submodules.
fix
Install extra dependencies: pip install bx-py-utils[django,colorama] or handle missing imports gracefully.
affects: all
deprecatedThe function `bx_py_utils.HTMLRenderer` is deprecated in favor of Django's native template rendering.
fix
Use Django's `django.template.loader.render_to_string` instead.
affects: >=100
Upgrade
Version history
118latest on PyPI · released Apr 21, 2026
Audit
Dependencies
DjangooptionalRequired for Django-specific utilities (e.g., testing, HTML rendering).
coloramaoptionalUsed for colored terminal output (e.g., `red_sym`, `green_sym`).
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
2
Resources
bx-py-utils — pip install bx-py-utils · libregistry