yaml-config
Python client for reading yaml based config files
What it is and what it does
yaml-config provides a simple Config class that wraps PyYAML to load and retrieve configuration variables from YAML files. You subclass it to define default file paths and configuration roots, then instantiate and call get() to retrieve values with optional defaults. It supports environment variable overrides through a configurable prefix (e.g., GBR_CONFIG_ROOT, GBR_CONFIG_DIR) to point to config file locations.
The package is designed for straightforward YAML-based configuration management in Python applications. It handles basic use cases like loading a config file once at startup and retrieving typed values throughout your application, but it is no longer maintained—the last release was in June 2020, and there have been no updates since.
Use it for:
- Load application settings from a YAML file at startup and retrieve them throughout the app lifecycle.
- Override config file paths via environment variables in containerized or multi-environment deployments.
- Subclass Config to define application-specific defaults and configuration roots in a single place.
- Migrate legacy applications from hardcoded or ad-hoc config parsing to a structured YAML-based approach.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Reads configuration from YAML files and provides a Config class to retrieve configuration variables, with support for environment variable overrides and custom defaults.
No. The package is abandoned (last release June 2020, no commits since), and its license status is unclear. For new projects, use a maintained alternative like python-dotenv, pydantic-settings, or dynaconf. Only consider it if you are maintaining legacy code that already depends on it and cannot migrate.
Install
yaml-config on PyPI
pip
pip install yaml-configuv
uv add yaml-configpoetry
poetry add yaml-configInstalling yaml-config
Before you install
Low install friction with only two runtime dependencies (PyYAML and typing). However, the package is abandoned—last release was 2020-06-22, over four years ago, with no recent maintenance activity.
License in practice
License treatment is unclear; the description mentions MIT licensing but the metadata lacks a formal SPDX identifier or raw license string, creating ambiguity about actual license terms.
Quickstart
pip install yaml-config
from yaml_config import Config
class MyConfig(Config):
default_file = 'config.yaml'
config = MyConfig()
value = config.get('key', default='fallback')
Verify before relying
- Whether the package works reliably with Python versions beyond 3.8 despite being abandoned since 2020.
- Whether PyYAML dependency updates have introduced breaking changes to the package's behavior.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — PyYAML, typing |
| Maintenance | abandoned — 2,244 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,151,083/month — #3,249 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yaml_config-0.1.5-py2.py3-none-any.whl
Keywords: yaml, config, pyyaml
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
bestconfigLoads configuration from multiple file formats…
permissive · top 15,000 on PyPI
confuseConfuse is a YAML configuration library that…
permissive · top 5,000 on PyPI
donfigDonfig provides a unified configuration system…
permissive · top 5,000 on PyPI
pyaml-envParses YAML configuration files and resolves…
permissive · top 15,000 on PyPI
pyyaml-env-tagAdds a custom YAML tag that lets you reference…
permissive · top 5,000 on PyPI
typer-configAdds configuration-file support to typer CLI…
permissive · top 15,000 on PyPI
vyper-configVyper provides a unified configuration system…
permissive · top 15,000 on PyPI
yamlloaderProvides specialized loaders and dumpers for…
permissive · top 15,000 on PyPI
HiYaPyCoLoads and merges multiple YAML configuration…
copyleft · top 15,000 on PyPI
configuratorBuilds a configuration store by layering…
permissive · top 15,000 on PyPI