DotZen Documentationï
Peaceful, type-safe Python configuration that just works.
DotZen brings zen to Python configuration management. Load settings from environment variables,
.env files, JSON, YAML, or cloud secret managers with automatic type casting, validation, and
a beautiful fluent API.
No more config chaos. Just pure zen. ð§ââïļâĻ
from dotzen import config
# Simple, elegant, type-safe
DEBUG = config('DEBUG', cast=bool, default=False)
PORT = config('PORT', cast=int, default=8000)
DATABASE_URL = config('DATABASE_URL')
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=list)
Quick Linksï
Getting Started: Installation â Basic Usage
User Guide: user_guide
API Reference: api_reference
Examples: examples
Key Featuresï
âĻ Unified API - One interface for all configuration sources
ðĄïļ Type Safety - Automatic casting with validation
ð Multi-Source - Environment, files, cloud secrets, Docker
â Validation - Catch errors early, not in production
ðïļ Design Patterns - Built on proven architectural patterns
ðŠķ Zero Core Dependencies - Lightweight and fast
ð Extensible - Easy custom sources and validators
Why DotZen?ï
Traditional configuration management is stressful:
ðŦ Scattered config sources (env vars, files, secrets)
ðĒ Type conversion headaches (strings everywhere!)
ðĨ No validation until runtime failures
ð Duplicated code across projects
ð Security risks with hardcoded secrets
DotZen solves these problems with:
Chain of Responsibility - Priority-based value resolution
Strategy Pattern - Pluggable configuration sources
Builder Pattern - Fluent configuration construction
Type Safety - Automatic casting and validation
Cloud-Native - First-class support for AWS, GCP, Azure
Table of Contentsï
Getting Started
- Installation
- Requirements
- Basic Installation
- Installation with Cloud Providers
- Installation with File Format Support
- Complete Installation
- Development Installation
- Docker Installation
- Virtual Environment Setup
- Requirements File
- Upgrading
- Uninstallation
- Troubleshooting
- Platform-Specific Notes
- Verification
- Next Steps
- Basic Usage
- Your First Project
- Common Patterns
- Next Steps