utils
A grab-bag of utility functions and objects
What it is and what it does
Utils is a grab-bag library collecting utility functions and classes across several domains: enums with options for frozen and strict comparison, mathematical operations, dictionary operations like intersections and differences, list utilities including flattening and flat_map, date/time handling via TimePeriod classes for range checking and overlap detection, and object utilities for deep attribute access and immutability wrappers. The library has no runtime dependencies and supports Python 3.6 and later.
The package is dormant with last release on 2024-01-06 and minimal repository activity. It ranks in the top tier by download volume but receives no active development. The source-only distribution and copyleft license (LGPLv3+) mean installation requires a build environment and any derivative work must preserve the same license.
Use it for:
- Define enums with strict type checking and immutability when you need custom enum behavior.
- Check whether a date or datetime falls within a time period, or detect overlaps between multiple periods.
- Flatten nested lists or perform functional list operations like flat_map without external dependencies.
- Perform set-like operations on dictionaries for data structure manipulation.
- Wrap objects with immutability to prevent accidental attribute modifications.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a collection of utility functions and classes for common programming tasks—enums, date/time periods, dictionary operations, list flattening, and object manipulation.
No. The package is dormant (last commit 2024-01-06, no active maintenance), has high install friction (source distribution only), and provides functionality now better served by Python's standard library or more actively maintained alternatives. The copyleft license also restricts use in proprietary code. Install only if maintaining legacy code that already depends on it.
Install
utils on PyPI
pip
pip install utilsuv
uv add utilspoetry
poetry add utilsInstalling utils
Before you install
High install friction due to source distribution only (utils-1.0.2.tar.gz). Maintenance is dormant: last release was 2024-01-06 with no recent activity. No runtime dependencies.
License in practice
Licensed under LGPLv3+, a copyleft license. Any derivative work or modification must be distributed under the same or compatible license terms.
Quickstart
pip install utils
from utils import enum
class Colors(enum.Enum):
RED = 0
GREEN = 1
print(Colors.RED)
Requires Python 3.6 or later. Source distribution only.
Verify before relying
- Whether the package includes compiled extensions requiring a build environment during installation.
- Likelihood of bug fixes or security updates given dormant repository state and minimal maintenance activity.
Package facts
| License | not declared (copyleft) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 951 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 599,038/month — #5,832 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: utils-1.0.2.tar.gz
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
sensai-utilsProvides general-purpose utility classes…
permissive · top 15,000 on PyPI
commoncodeCommonCode provides utility functions for…
unclear · top 15,000 on PyPI
lamin_utilsProvides utility functions and helpers for…
permissive · top 15,000 on PyPI
vonage-utilsProvides utility functions and error types for…
permissive · top 15,000 on PyPI
pyctProvides command-line and Python utilities for…
permissive · top 15,000 on PyPI
python-utilsA collection of fully-typed utility functions…
permissive · top 5,000 on PyPI
oslo.utilsoslo.utils provides common utility functions…
permissive · top 5,000 on PyPI
torch-einops-utilsProvides utility functions for PyTorch and…
permissive · top 15,000 on PyPI
ordered-enumAdds comparison operators to Python enums so…
unclear · top 15,000 on PyPI
kitchenKitchen provides a collection of small utility…
copyleft · top 15,000 on PyPI