skillfed

aspy.yaml

A few extensions to pyyaml.

aspy-yaml v1.3.0 165.9K downloads/30d#10,514 on PyPI8
Permissive license MIT Abandoned released

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-yaml

uv

uv add aspy-yaml

poetry

poetry add aspy-yaml

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: PyPy

Tags

yaml ordered dictionarypreserve yaml key orderordered yaml load dumppyyaml extensionsyaml dict orderingmaintain yaml order
yamlarchivedlegacy

More Markup packages