hbutils
Some useful functions and classes in Python infrastructure development.
Decision gist · record as of 2026-08-14
Yes. hbutils is actively maintained, carries no known vulnerabilities, has low install friction, and offers a permissive Apache License, Version 2.0. It's useful as a selective import library—grab the specific modules you need rather than committing to the whole package. Best suited for infrastructure and utility code where you want to avoid reinventing common patterns.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel distribution.
- Active maintenance with a recent release and ongoing commits.
- Eight runtime dependencies are all stable, well-established packages.
License · maintenance · safety
Apache License, Version 2.0 (permissive) — Apache License, Version 2.0 is permissive; you can use, modify, and distribute hbutils in commercial and proprietary projects with minimal restrictions, provided you include the license notice.
last release 2025-12-17 (240 days) · last repo commit 2026-03-01 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,491 downloads/mo, #12,456 on PyPI
Alternatives
Verify before relying
pip install hbutils
from hbutils.algorithm import linear_map
f = linear_map((0, 1, 0.5))
print(f(0.25)) # 0.5- Whether all documented modules are fully functional in version 0.14.2 or if some are experimental.
- Performance characteristics and typical use-case scale for the collection and concurrent modules.
- Whether the reflection module's introspection capabilities work reliably across all listed Python implementations.
What it is and what it does
hbutils is a broad utility library organized into multiple modules, each addressing a specific area of Python infrastructure: algorithms (linear mapping, topological sorting), binary I/O, collections (grouping, deduplication), color models, concurrency (ReadWriteLock), design patterns (Singleton), encoding and hashing, file operations, logging with colored output, object reflection, random generation, string processing, system information, and testing utilities. It's designed to be cross-platform and works on Windows, Ubuntu, and macOS across Python 3.7 through 3.13 with both CPython and PyPy implementations.
The package is intended as a grab-bag of helpers to reduce boilerplate in infrastructure code—you import the specific module you need rather than using the whole library. Its dependencies are all mainstream packages (packaging, setuptools, pytimeparse, bitmath, chardet, deprecation, importlib-metadata, typing-extensions), so adding it to a project carries minimal risk. The library is actively maintained and marked Production/Stable in its classifiers.
Use it for
- Implement piecewise linear interpolation or topological sorting without writing custom algorithms.
- Add colored logging output and multi-line message formatting to existing applications.
- Parse and convert between color models (RGB, HSV, HLS) for graphics or visualization tasks.
- Retrieve file metadata and perform low-level binary I/O operations.
- Build unit tests with isolation, capture utilities, and test data generation helpers.
- Access Python object introspection and manipulation utilities for metaprogramming tasks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
hbutils is actively maintained, carries no known vulnerabilities, has low install friction, and offers a permissive Apache License, Version 2.0. It's useful as a selective import library—grab the specific modules you need rather than committing to the whole package. Best suited for infrastructure and utility code where you want to avoid reinventing common patterns.
Install
hbutils on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release and ongoing commits. Eight runtime dependencies are all stable, well-established packages.
License in practice
Apache License, Version 2.0 is permissive; you can use, modify, and distribute hbutils in commercial and proprietary projects with minimal restrictions, provided you include the license notice.
Quickstart
pip install hbutils
from hbutils.algorithm import linear_map
f = linear_map((0, 1, 0.5))
print(f(0.25)) # 0.5
Verify before relying
- Whether all documented modules are fully functional in version 0.14.2 or if some are experimental.
- Performance characteristics and typical use-case scale for the collection and concurrent modules.
- Whether the reflection module's introspection capabilities work reliably across all listed Python implementations.
Package facts
| License | Apache License, Version 2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagespackagingsetuptoolspytimeparsebitmathchardetdeprecationimportlib-metadatatyping-extensions |
| Maintenance | Actively maintained 240 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,491 / month, #12,456 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Other EnvironmentFramework :: PytestIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/EngineeringTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: TestingTopic :: System :: Systems AdministrationTopic :: Text ProcessingTopic :: UtilitiesTyping :: Typed |
Evidence: hbutils-0.14.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
An agent finds packages by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language. Give your agent the search over MCP.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also shutils · bigtree · ubiquerg · immutables · binapy · viv-utils · bpyutils · apache-hamilton · oslo.utils · adbutils