skillfed

PyStaticConfiguration

A python library for loading static configuration

pystaticconfiguration v0.11.1 124.8K downloads/30d#11,851 on PyPI64
Permissive license APACHE20 AGING released

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 pystaticconfiguration

uv

uv add pystaticconfiguration

poetry

poetry add pystaticconfiguration

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: PyPy

Tags

configuration file loadingyaml ini config parsertype-validated config readermulti-format config managementconfiguration hot reloadconfig namespace managementstatic configuration library
configuration-managementyaml-ini-parserhot-reload

More Software Development packages