pydantic-settings-azure-app-configuration
Azure App Configuration setting source for pydantic-settings
What it is and what it does
This package integrates Azure App Configuration and Azure Key Vault with pydantic-settings, allowing you to define application settings as pydantic models and populate them directly from Azure services. It acts as a custom settings source that plugs into pydantic-settings' `settings_customise_sources` hook, so configuration values flow into your BaseSettings classes alongside environment variables and other sources.
The package supports filtering configuration by key prefix, trimming that prefix from resulting field names, and transparently resolving references to secrets stored in Key Vault. It requires Azure credentials and supports nested models through a configurable delimiter.
Use it for:
- Centralize application configuration in Azure App Configuration while keeping pydantic validation and type safety.
- Retrieve database passwords and API keys from Azure Key Vault without hardcoding or managing separate secret files.
- Multi-tenant or multi-environment deployments where different instances load config by key prefix from a shared store.
- Migrate from environment-variable-based config to a managed Azure service while preserving pydantic's nested model patterns.
- Use Entra ID role-based access control to secure config access without shared credentials.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Loads application configuration and secrets from Azure App Configuration and Azure Key Vault into pydantic-settings models, with support for key filtering, prefix trimming, and nested configuration.
Yes, if you are already committed to Azure and pydantic-settings. The package has low install friction and no known vulnerabilities. However, the aging maintenance status and unclear license pose moderate risk for production use. Verify the license explicitly and assess whether the limited community support is acceptable for your deployment model.
Install
pydantic-settings-azure-app-configuration on PyPI
pip
pip install pydantic-settings-azure-app-configurationuv
uv add pydantic-settings-azure-app-configurationpoetry
poetry add pydantic-settings-azure-app-configurationInstalling pydantic-settings-azure-app-configuration
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging—last commit was 2025-09-09 with only 3 stars, suggesting limited community adoption and uncertain long-term support.
License in practice
License treatment is unclear; no SPDX identifier or raw license text is declared in the package metadata. Verify the actual license before using in proprietary or GPL-sensitive contexts.
Quickstart
from azure.identity import DefaultAzureCredential
from pydantic_settings import BaseSettings
from pydantic_settings_azure_app_configuration.source import AzureAppConfigurationSettingsSource
class MySettings(BaseSettings):
api_key: str
@classmethod
def settings_customise_sources(cls, settings_cls, init_settings, env_settings, dotenv_settings, file_secret_settings):
credential = DefaultAzureCredential()
azure_source = AzureAppConfigurationSettingsSource(settings_cls, lambda opts: opts.connect_with_url(os.environ["AZURE_APP_CONFIGURATION_URL"], credential))
return (init_settings, env_settings, dotenv_settings, file_secret_settings, azure_source)
Requires Python >=3.11; Azure credentials and AZURE_APP_CONFIGURATION_URL environment variable must be configured.
Verify before relying
- Whether the package is actively maintained or in maintenance-only mode given the aging status and low star count.
- The actual license under which the package is distributed, since metadata declares none.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — pydantic, pydantic-settings, azure-appconfiguration, azure-keyvault-secrets, azure-identity |
| Maintenance | aging — 339 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 387,423/month — #7,044 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pydantic_settings_azure_app_configuration-1.1.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI 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
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
pydantic-settingsLoads and validates application settings from…
permissive · top 100 on PyPI
azure-appconfiguration-providerLoads application configurations from Azure App…
permissive · top 5,000 on PyPI
azure-keyvault-secretsSecurely store, retrieve, and manage secrets…
permissive · top 1,000 on PyPI
azure-keyvault-keysManages cryptographic keys in Azure Key…
unclear · top 1,000 on PyPI
azure-keyvault-administrationManages role-based access control, backup,…
permissive · top 5,000 on PyPI
dynaconfDynaconf manages application configuration…
permissive · top 5,000 on PyPI
azure-keyvault-certificatesManages SSL/TLS certificates stored in Azure…
permissive · top 5,000 on PyPI
azure-keyvault-securitydomainManages security domains for Azure Key Vault…
permissive · top 5,000 on PyPI
azure-keyvaultA bundle package that installs three Azure Key…
permissive · top 5,000 on PyPI
azure-mgmt-keyvaultManages Azure Key Vault resources—vaults, keys,…
unclear · top 5,000 on PyPI