daiquiri
Library to configure Python logging easily
What it is and what it does
Daiquiri is a Python logging configuration helper that reduces boilerplate when setting up logging in applications. Instead of manually configuring loggers, handlers, and formatters, you call daiquiri's setup function to get a working logging pipeline. It wraps python-json-logger to enable structured JSON logging and provides additional custom formatters and handlers for common use cases.
The package targets system administrators and IT professionals who need reliable, easy-to-configure logging for production applications. It's designed for POSIX/Linux environments and supports Python 3.10 and later. With low install friction and no security vulnerabilities, it's a straightforward addition to projects that want structured logging without extensive configuration code.
Use it for:
- Set up JSON-structured logging in a new application with a single function call instead of manual handler and formatter configuration.
- Configure logging for microservices or containerized applications where structured logs are parsed by log aggregation systems.
- Add consistent logging to system administration scripts and tools running on Linux servers.
- Replace ad-hoc print statements in CLI tools with proper logging that can be easily toggled between console and file output.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Daiquiri simplifies Python logging configuration by providing a single setup call and custom formatters and handlers for structured logging output.
Yes. Daiquiri is actively maintained, has no known vulnerabilities, carries a permissive Apache 2.0 license, and installs with minimal friction. It's a good fit if you want to reduce logging boilerplate in Python applications targeting Python 3.10 or later. Install it if you prefer declarative logging setup over manual configuration; skip it if your project already has a mature logging strategy.
Install
daiquiri on PyPI
pip
pip install daiquiriuv
uv add daiquiripoetry
poetry add daiquiriInstalling daiquiri
Before you install
Low friction install with a single runtime dependency. The package is actively maintained with a recent commit on 2026-08-13 and supports Python 3.10, 3.11, 3.12, and 3.13.
License in practice
Licensed under Apache 2.0 (permissive), which allows free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install daiquiri
import daiquiri
daiquiri.setup()
Requires Python 3.10 or later.
Verify before relying
- What specific custom formatters and handlers does daiquiri provide beyond python-json-logger's capabilities?
- Does daiquiri support async logging or only synchronous handlers?
- What are the typical performance characteristics when using daiquiri for high-volume logging?
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — python-json-logger |
| Maintenance | actively maintained — 344 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,202/month — #11,878 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: daiquiri-3.4.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
logfmterFormats Python stdlib logging output as logfmt…
permissive · top 15,000 on PyPI
mdcAdds Mapped Diagnostic Context (MDC) support to…
unclear · top 15,000 on PyPI
loguruLoguru provides a pre-configured logger that…
permissive · top 1,000 on PyPI
JSON-log-formatterFormats Python logging records as JSON,…
permissive · top 5,000 on PyPI
logging-jsonFormats Python logging records as JSON output,…
permissive · top 15,000 on PyPI
json-loggingConfigures Python's standard logging module to…
permissive · top 5,000 on PyPI
django-structlogIntegrates structured logging into Django…
permissive · top 5,000 on PyPI
logzerologzero provides pre-configured Python logging…
permissive · top 5,000 on PyPI
google-cloud-loggingWrites log entries to Google Cloud Logging and…
permissive · top 1,000 on PyPI
django-datadog-loggerIntegrates Django applications with Datadog…
permissive · top 15,000 on PyPI