Composition of utils for Dou Inc. projects.
Installs files for python formatting options.
# initiate project with `uv init`
# add dou-utils with `uv add dou-utils`
dou install formatting
A simple and flexible Python logging utility with enhanced features for structured logging.
- Easy-to-use logging methods:
info
,debug
,warning
,error
. - Structured logging support: Pass additional metadata with your log messages.
- Configurable logging levels: Control the verbosity of your logs.
Install DouLogger directly from the GitHub repository:
pip install git+https://github.com/douinc/[email protected]
Import the logger from the dou package:
from dou import logger
Log messages at different severity levels:
logger.info("This is an info message")
logger.debug("This is a debug message")
logger.warning("This is a warning message")
logger.error("This is an error message")
Include additional metadata in your logs for better traceability:
logger.info(
message={
"event": "user_signup",
"user_id": 12345,
},
search_id="abcde12345",
)
uv build
uv pip install -e .
uv publish
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or suggestions, please open an issue or contact us at [email protected]