Python UtilsΒΆ
Python Utils is a collection of small, battle-tested functions and classes that make everyday Python patterns shorter, safer and faster. No sprawling framework, no heavy dependencies β just the helpers you find yourself rewriting in project after project, packaged once and typed to the hilt.
Highlights:
πͺΆ Zero-cost imports β PEP 562 lazy loading means
import python_utilspulls in nothing until you touch a helper.β‘ Async-native β
acount,abatcherand timeout/stall detectors forasync for.π¦ Smart containers β self-casting dicts, duplicate-proof lists, a sliceable deque.
π’ Forgiving converters β numbers out of messy strings, byte scaling, range remapping with
Decimalprecision.π― Fully typed & 100% covered β ships
py.typedand passes mypy, basedpyright and pyrefly in strict mode.
New here? Start with π Getting started.