A collection of focused Python utilities that handle common development tasks without heavy dependencies. The library emphasizes reliability, minimal overhead, and straightforward APIs for everyday scripting and application development.
- Configuration loader supporting JSON, YAML, and environment variable overrides
- Atomic file writing with automatic backup creation
- Human-readable formatting for byte sizes and durations
- Retry decorator with configurable attempts and exponential backoff
pip install python-utils-42For the latest development version:
pip install git+https://github.com/Developer/python-utils-42.gitfrom python_utils_42 import load_config, format_bytes, retry
config = load_config("settings.yaml", env_prefix="APP_")
print(format_bytes(1536000)) # "1.46 MB"
@retry(attempts=3, backoff=1.5)
def fetch_data():
...This project is licensed under the MIT License.