dou-utils
Composition of utils for Dou Inc. projects.
DouCLI
Installs files for python formatting options.
Quickstart
# initiate project with `uv init`
# add dou-utils with `uv add dou-utils`
dpu install formatting
DouLogger
A simple and flexible Python logging utility with enhanced features for structured logging.
Features
- 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.
Installation
Install DouLogger directly from the GitHub repository:
pip install git+https://github.com/douinc/dou-python-utils.git@v0.1.0
Quick Start
Import the logger from the dou package:
from dou import logger
Basic Logging
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")
Structured Logging
Include additional metadata in your logs for better traceability:
logger.info(
message={
"event": "user_signup",
"user_id": 12345,
},
search_id="abcde12345",
)
Development
uv build
uv pip install -e .
Publish
uv publish
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
For questions or suggestions, please open an issue or contact us at team@dou.so
Metadata
Release files for dou-utils 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dou_utils-0.1.9.tar.gz | 5.2 kB | Without provenance | Details for dou_utils-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dou_utils-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for dou_utils-0.1.9-py3-none-any.whl |
Total release size: 11.0 kB
Release files / dou_utils-0.1.9.tar.gz
| Download URL | dou_utils-0.1.9.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b765773d9a58837e48d5936c96fd365f2f45bfaa7b6f7e386542b1c2e2e43e84
|
|
BLAKE2b-256 checksum How to use checksums |
b773bc937e4801ba226296d698ae12744855ef4b8a0b014fe5cfa16bc21ea6c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|
Release files / dou_utils-0.1.9-py3-none-any.whl
| Download URL | dou_utils-0.1.9-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7786a0a008921c144a4645c65000255a0d02d4b4d34a6602a09f0ccf65af36a8
|
|
BLAKE2b-256 checksum How to use checksums |
affb0f5063d647fe399648b6e24cbf2bebfd0a39f6135db95e51ec9b2a891ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|
Security for dou-utils 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.