this readme is gpt-generated
Cool utility library for Python that provides tools for:
- helper, utility functions
- logging and timing decorators
- periodic task cycling (sync and async)
- SQLAlchemy repository patterns and mixins
Easy debugging and performance tracking
Automate repetitive tasks with:
Cycler: sync loop with error handling and sleep intervals.AsyncCycler: asyncio-based version with same logic.
Simple SQLAlchemy ORM pattern for:
get_first,get_all,get_or_create- session handling (sync & async)
- commit, delete, save helpers
For ORM models:
- auto primary key (
UUIDPK_Mixin,SerialPK_Mixin) - created/modified timestamp mixins
auto_repr()utility for readable__repr__
Helpers for loading config:
read_yaml(path)read_json(path)YamlFileclass for ordered YAML parsing and saving
Small handy functions:
- safe dictionary access (
get_or_first,reverse_dict) - chained mappers (
map_many,applyer) - list/dict transformations (
merge,mapl,mapc)
pip install beautools