Examplesο
Confii provides comprehensive examples demonstrating all major features.
Basic Examplesο
basic_usage.py - Simple configuration loading - Multiple sources - Environment variables - Environment-specific configs
Introspection APIο
introspection_api.py - Using keys(), has(), get() methods - Schema introspection - Configuration explanation
Validation Examplesο
validation_example.py - Pydantic model validation - JSON Schema validation - Default value application
Async Supportο
async_example.py - Async configuration loading - Parallel loading - Async reloading
Advanced Featuresο
advanced_features.py - Versioning - Diff and drift detection - Observability and metrics - Configuration composition
Secret Storesο
secret_store_example.py - AWS Secrets Manager - HashiCorp Vault - Multi-store fallback
Running Examplesο
Examples can be run directly:
python examples/basic_usage.py
python examples/introspection_api.py
python examples/async_example.py
For more examples, see the examples directory.