dynamic-yaml
Enables self referential yaml entries
Decision gist · record as of 2026-08-14
Yes, if you need lightweight configuration templating in YAML. The package is simple, has minimal dependencies, and solves a real problem—avoiding repetition in configuration files. However, maintenance is dormant (last update 2024-04-09), so adopt it only if you can tolerate no active support. The MIT license carries no restrictions. Not suitable if you need active bug fixes or features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires pyyaml to be installed; strings containing braces must be quoted in YAML to distinguish them from mapping syntax.
- Low install friction with a single runtime dependency (pyyaml).
- Maintenance is dormant—last release was 2024-04-09 with no recent commits, though the repository remains active and has not been archived.
License · maintenance · safety
permissive license (permissive) — MIT License permits unrestricted use, modification, and distribution for both commercial and private projects, with only attribution and license notice required.
last release 2024-04-09 (857 days) · last repo commit 2024-04-09 · 45 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 576,509 downloads/mo, #5,929 on PyPI
Alternatives
Verify before relying
import dynamic_yaml
with open('config.yaml') as f:
cfg = dynamic_yaml.load(f)
print(cfg.dirs.venv) # Resolves interpolated references- Whether the package handles circular reference detection or will hang on cyclic interpolations.
- Performance characteristics when resolving deeply nested or large configuration trees.
- Compatibility with recent pyyaml versions and Python 3.12+.
What it is and what it does
Dynamic YAML extends PyYAML to support self-referential configuration values. Instead of repeating paths or values throughout a YAML file, you can use Python format string syntax (curly braces) to reference other keys in the configuration tree—for example, `{dirs.home}/venvs/{project_name}` will resolve to the actual values of those keys. This turns static YAML into a lightweight templating system suitable for managing complex configuration hierarchies.
The package works by wrapping PyYAML's loader and providing a `load()` function that returns an object with attribute access to configuration keys. References are resolved dynamically when accessed, and you can also dump the resolved configuration back to YAML. It integrates naturally with tools like argparse, allowing command-line arguments to override configuration values that other parts of the config depend on.
Use it for
- Build configuration files where paths are defined once at the root and reused throughout nested sections.
- Generate environment-specific configs (dev, staging, prod) by changing a few base values and letting references propagate.
- Combine with argparse to override base parameters and have dependent paths update automatically.
- Export resolved configurations to YAML for deployment or documentation without manual path expansion.
- Reduce duplication in large configuration files by centralizing repeated values as references.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need lightweight configuration templating in YAML.
The package is simple, has minimal dependencies, and solves a real problem—avoiding repetition in configuration files. However, maintenance is dormant (last update 2024-04-09), so adopt it only if you can tolerate no active support. The MIT license carries no restrictions. Not suitable if you need active bug fixes or features.
Install
dynamic-yaml on PyPI
Before you install
Low install friction with a single runtime dependency (pyyaml). Maintenance is dormant—last release was 2024-04-09 with no recent commits, though the repository remains active and has not been archived.
Requires pyyaml to be installed; strings containing braces must be quoted in YAML to distinguish them from mapping syntax.
License in practice
MIT License permits unrestricted use, modification, and distribution for both commercial and private projects, with only attribution and license notice required.
Quickstart
import dynamic_yaml
with open('config.yaml') as f:
cfg = dynamic_yaml.load(f)
print(cfg.dirs.venv) # Resolves interpolated references
Verify before relying
- Whether the package handles circular reference detection or will hang on cyclic interpolations.
- Performance characteristics when resolving deeply nested or large configuration trees.
- Compatibility with recent pyyaml versions and Python 3.12+.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepyyaml |
| Maintenance | Dormant 857 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 576,509 / month, #5,929 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 |
Evidence: dynamic_yaml-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “self-referential yaml”
- dynamic-yamlAdds dynamic string interpolation to YAML configuration files,…
- adaptixAdaptix converts between data models, dictionaries, and JSON with…
- djangorestframework-recursiveAdds a RecursiveField to Django REST Framework that serializes and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also envyaml · HiYaPyCo · PyYAML · yamllint · yacman · anyconfig · HyperPyYAML · pyaml · condor-git-config · yacs