PyStaticConfiguration
A python library for loading static configuration
What it is and what it does
PyStaticConfiguration is a configuration management library that separates loading and reading into two distinct phases. In the loading phase, it reads configuration from files or Python objects, flattens the data, and stores it in named namespaces. In the reading phase, it retrieves values from those namespaces, validates them, and converts them to requested types. The library supports merging configuration from multiple sources in sequence and can optionally watch files for changes and reload them with minimal code changes.
The package is designed for applications that need to manage configuration across heterogeneous sources—combining defaults from global files, user overrides, and environment variables. It trades active maintenance for stability: the codebase is marked Production/Stable and has been in use since its early releases, but the last release was in October 2022 and there are no recent commits. It depends only on typing-extensions, making it lightweight to install.
Use it for:
- Load application settings from a YAML file, then override specific values with environment variables.
- Manage separate configuration namespaces for different services or environments within a single application.
- Implement configuration hot-reloading in a long-running service that needs to pick up changes without restarting.
- Merge configuration from multiple sources in a predictable order with later sources overriding earlier ones.
- Read and validate typed configuration values with automatic conversion from string sources.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Loads, validates, and reads configuration from multiple file formats into typed namespaces, with optional hot-reloading support.
Yes, if you need multi-format configuration loading with type validation and your project targets Python 3.6+. The library is stable and has low install friction, but be aware that maintenance is stalled—last release was October 2022 with no recent commits. It is suitable for established applications that do not require active development, but consider alternatives if you need ongoing support or modern dependency updates.
Install
pystaticconfiguration on PyPI
pip
pip install pystaticconfigurationuv
uv add pystaticconfigurationpoetry
poetry add pystaticconfigurationInstalling PyStaticConfiguration
Before you install
Low install friction with a single runtime dependency. Maintenance is aging—last release was 2022-10-22 and the repository shows no recent activity, though it remains archived=false and supports current Python versions.
License in practice
Licensed under Apache Software License (permissive), imposing no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install PyStaticConfiguration
import PyStaticConfiguration
# Load configuration from a file into a namespace
PyStaticConfiguration.YamlConfiguration('config.yaml', namespace='app')
# Read a value from that namespace
value = PyStaticConfiguration.read('database.host', namespace='app')
Requires Python 3.6 or later.
Verify before relying
- Whether the package's type conversion and validation capabilities cover common use cases beyond basic reads.
- Performance characteristics when reloading large configuration files or managing many namespaces.
- Compatibility with modern YAML/INI libraries and whether dependency updates are needed.
- Current state of the repository and whether it accepts contributions or security updates.
Package facts
| License | APACHE20 (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | aging — 1,392 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,825/month — #11,851 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: PyStaticConfiguration-0.11.1-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
dynaconfDynaconf manages application configuration…
permissive · top 5,000 on PyPI
setoptconfSetoptconf retrieves program settings from…
permissive · top 15,000 on PyPI
draccusDraccus parses command-line arguments and…
permissive · top 5,000 on PyPI
hierarchical-confLoads configuration from YAML files organized…
unclear · top 15,000 on PyPI
django-settings-holderProvides a settings container for Django…
permissive · top 15,000 on PyPI
paradictParadict serializes and deserializes Python…
permissive · top 15,000 on PyPI
confuseConfuse is a YAML configuration library that…
permissive · top 5,000 on PyPI
setoptconf-tmpRetrieves program settings from multiple…
permissive · top 15,000 on PyPI
INIToolsINITools parses and manipulates INI-style…
permissive · top 15,000 on PyPI
azure-eventgridPublishes and consumes events through Azure…
permissive · top 5,000 on PyPI