aspy.yaml
A few extensions to pyyaml.
What it is and what it does
aspy.yaml wraps pyyaml to provide ordered_load and ordered_dump functions that preserve the order of dictionary keys when reading and writing YAML. This is useful when you need YAML files to maintain a specific key sequence, which matters for human readability or when order carries semantic meaning in your configuration format.
The package depends only on pyyaml and installs as a pure-Python wheel with low friction. However, it has been archived and unmaintained since 2020. You should verify whether this package remains necessary for your use case before adopting it.
Use it for:
- Load YAML configuration files and preserve the order of top-level keys for reproducible output.
- Dump OrderedDict objects back to YAML while maintaining the insertion order of keys.
- Integrate with codebases that rely on ordered YAML semantics and cannot upgrade.
- Generate YAML with a specific key order for consistency or readability.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides order-preserving YAML loading and dumping functions that extend pyyaml to maintain dictionary key order when reading and writing YAML files.
No. The package is archived and abandoned since 2020 with no maintenance. Only install if you have a specific legacy dependency and are prepared to maintain a fork or migrate to an alternative.
Install
aspy-yaml on PyPI
pip
pip install aspy-yamluv
uv add aspy-yamlpoetry
poetry add aspy-yamlInstalling aspy.yaml
Before you install
Low install friction with a single pure-Python dependency. However, the package is archived and abandoned since 2020, with no maintenance activity for over 2640 days.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install aspy.yaml
from aspy.yaml import ordered_load
ordered_load('foo: bar\nbar: baz\nherp: derp\n')
Verify before relying
- Whether modern Python versions and current pyyaml releases remain compatible with this unmaintained package.
- Whether built-in dict ordering reduces the need for this extension in contemporary codebases.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pyyaml |
| Maintenance | abandoned — 2,640 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 165,852/month — #10,514 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aspy.yaml-1.3.0-py2.py3-none-any.whl
Tags
More Markup packages
PyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
markdown-it-pyA Python markdown parser that converts markdown…
permissive · top 100 on PyPI
beautifulsoup4Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
et-xmlfileet_xmlfile writes large XML files with minimal…
permissive · top 1,000 on PyPI
tomlkitParses and edits TOML files while preserving…
permissive · top 1,000 on PyPI
docstring-parserParses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
HyperPyYAMLExtends YAML syntax with Python-friendly…
permissive · top 5,000 on PyPI
oyamloyaml is a drop-in replacement for PyYAML that…
permissive · top 5,000 on PyPI
pyyaml-includeExtends PyYAML to include other YAML files into…
copyleft · top 5,000 on PyPI
yamlloaderProvides specialized loaders and dumpers for…
permissive · top 15,000 on PyPI
yamlordereddictloaderProvides YAML loaders and dumpers for PyYAML…
permissive · top 15,000 on PyPI
yamlcoreAdds YAML 1.2 Core Schema support to PyYAML,…
permissive · top 15,000 on PyPI
ruamel.yaml.stringAdds a `dump_to_string` method to…
permissive · top 15,000 on PyPI
saneyamlA lightweight PyYAML wrapper that reads and…
permissive · top 15,000 on PyPI
HiYaPyCoLoads and merges multiple YAML configuration…
copyleft · top 15,000 on PyPI
ordereddictProvides an OrderedDict implementation for…
permissive · top 15,000 on PyPI