Skip to main content

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)

Source distribution for dou-utils 0.1.9
File Size Uploaded
dou_utils-0.1.9.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dou-utils 0.1.9
File Interpreter ABI Platform
dou_utils-0.1.9-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page