yamlpath
Command-line get/set/merge/validate/scan/convert/diff processors for YAML/JSON/Compatible data using powerful, intuitive, command-line friendly syntax
Decision gist · record as of 2026-08-14
Yes. The package is production-stable, actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It fills a genuine gap for path-based YAML querying and editing. Install it if you need command-line YAML/JSON manipulation, configuration file merging, or programmatic access to nested data structures.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; EYAML support is optional and requires separate installation for encrypted data handling.
- Low friction install with only two runtime dependencies (ruamel.yaml and python-dateutil).
- The package is actively maintained with a recent release and supports current Python versions (3.10 through 3.14).
License · maintenance · safety
ISC (permissive) — ISC license is permissive and allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects without legal concerns.
last release 2026-05-02 (104 days) · last repo commit 2026-05-02 · 137 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 148,791 downloads/mo, #11,018 on PyPI
Alternatives
Verify before relying
pip install yamlpath
from yamlpath import Processor
from ruamel.yaml import YAML
yaml = YAML()
data = yaml.load(open('file.yaml'))
processor = Processor(data)
for node in processor.get_nodes('path.to.key'):
print(node.value)- Whether the library handles circular references or deeply nested structures without performance degradation.
- Exact performance characteristics when querying or merging large YAML documents.
- Whether regex search expressions support all Python regex features or have limitations.
What it is and what it does
yamlpath is a query language and Python library for selecting, extracting, and modifying nodes within YAML, JSON, and EYAML documents. It supports both dot-notation (inspired by Hiera) and forward-slash notation (influenced by XPath), allowing you to identify single nodes or search for multiple nodes matching criteria like key names, values, anchors, or regex patterns. The package includes command-line tools for common operations—get, set, merge, validate, diff, and scan—making it useful both as a standalone CLI utility and as a library embedded in other Python projects.
The library is built on ruamel.yaml and python-dateutil, keeping its dependency footprint small. It handles complex YAML structures including arrays, hashes, anchors, aliases, and encrypted EYAML fields. You can use it to programmatically navigate nested data, perform bulk updates across multiple matching paths, merge configuration files, or validate document structure from the command line without writing custom parsing code.
Use it for
- Extract or update specific values in Kubernetes manifests or Helm charts using path queries from shell scripts.
- Merge multiple YAML configuration files while preserving structure and handling conflicts.
- Search for and decrypt EYAML-encrypted values across configuration documents in a CI/CD pipeline.
- Validate YAML/JSON document structure and content against expected schemas or patterns.
- Diff two YAML files to identify configuration changes between versions.
- Programmatically modify nested YAML data in Python without manual dict traversal.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is production-stable, actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It fills a genuine gap for path-based YAML querying and editing. Install it if you need command-line YAML/JSON manipulation, configuration file merging, or programmatic access to nested data structures.
Install
yamlpath on PyPI
Before you install
Low friction install with only two runtime dependencies (ruamel.yaml and python-dateutil). The package is actively maintained with a recent release and supports current Python versions (3.10 through 3.14).
Requires Python 3.10 or later; EYAML support is optional and requires separate installation for encrypted data handling.
License in practice
ISC license is permissive and allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects without legal concerns.
Quickstart
pip install yamlpath
from yamlpath import Processor
from ruamel.yaml import YAML
yaml = YAML()
data = yaml.load(open('file.yaml'))
processor = Processor(data)
for node in processor.get_nodes('path.to.key'):
print(node.value)
Verify before relying
- Whether the library handles circular references or deeply nested structures without performance degradation.
- Exact performance characteristics when querying or merging large YAML documents.
- Whether regex search expressions support all Python regex features or have limitations.
Package facts
| License | ISC permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesruamel.yamlpython-dateutil |
| Maintenance | Actively maintained 104 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 148,791 / month, #11,018 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleLicense :: OSI Approved :: ISC License (ISCL)Operating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: yamlpath-3.9.1-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 › “yaml path query language”
- yamlpathQuery, retrieve, update, merge, validate, and diff YAML, JSON, and…
- jmespathJMESPath is a query language for extracting and transforming data…
- jsonpath-rwParses and executes JSONPath expressions against JSON data, returning…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also HyperPyYAML · yamale · ruyaml · niet · parsel · yq · uipath-core · pykwalify · pyaml · shyaml