ruyaml
ruyaml is a fork of ruamel.yaml
Decision gist · record as of 2026-08-14
Yes, with conditions. ruyaml is production-stable (MIT license, actively maintained repository, no known vulnerabilities, low install friction) and solves a real problem that standard YAML libraries don't—preserving comments and formatting. However, the last PyPI release was December 2021 despite recent repository commits; verify that the version available on PyPI meets your needs, or consider pinning to a specific version if you depend on recent fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; the old top-level functions (load, dump, safe_load, etc.) are deprecated—use YAML() instance methods instead.
- Low install friction with only two runtime dependencies (distro and setuptools).
- The package is actively maintained with recent commits and a stable release history, though the last PyPI release was in December 2021 despite ongoing repository activity.
License · maintenance · safety
MIT license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and proprietary projects with minimal restrictions.
last release 2021-12-07 (1711 days) · last repo commit 2026-08-10 · 79 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,495,051 downloads/mo, #3,838 on PyPI
Alternatives
Verify before relying
pip install ruyaml
import ruyaml as yaml
yaml_obj = yaml.YAML()
data = yaml_obj.load(open('config.yaml'))
yaml_obj.dump(data, open('output.yaml', 'w'))- Current maintenance status relative to the original ruamel.yaml—whether ruyaml is actively receiving feature parity updates
- Specific performance characteristics compared to ruamel.yaml or PyYAML for large YAML files
- Whether the package is suitable for production use given the last PyPI release was December 2021
What it is and what it does
ruyaml is a maintained fork of ruamel.yaml that parses and serializes YAML while preserving comments, blank lines, and formatting during round-trip operations. It's designed to solve the problem of YAML libraries that lose structural metadata when loading and re-saving files—critical for configuration management, templating, and any workflow where human-readable YAML structure matters.
The package provides a YAML() class-based API (replacing deprecated top-level functions) and depends only on distro and setuptools. It supports Python 3.6 through 3.10 and is actively maintained by the pycontribs community to ensure long-term stability. The fork was created to secure the library's future by distributing maintenance responsibilities.
Use it for
- Editing and updating configuration files while preserving comments and formatting for human readability
- Building YAML-based templating or code generation systems that need to maintain structural integrity
- Loading YAML data with comments and re-serializing it without losing metadata for documentation or audit trails
- Configuration management tools that must preserve user comments and formatting across updates
- Parsing structured YAML documents where comment preservation is required for compliance or clarity
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
ruyaml is production-stable (MIT license, actively maintained repository, no known vulnerabilities, low install friction) and solves a real problem that standard YAML libraries don't—preserving comments and formatting. However, the last PyPI release was December 2021 despite recent repository commits; verify that the version available on PyPI meets your needs, or consider pinning to a specific version if you depend on recent fixes.
Install
ruyaml on PyPI
Before you install
Low install friction with only two runtime dependencies (distro and setuptools). The package is actively maintained with recent commits and a stable release history, though the last PyPI release was in December 2021 despite ongoing repository activity.
Requires Python 3.6 or later; the old top-level functions (load, dump, safe_load, etc.) are deprecated—use YAML() instance methods instead.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install ruyaml
import ruyaml as yaml
yaml_obj = yaml.YAML()
data = yaml_obj.load(open('config.yaml'))
yaml_obj.dump(data, open('output.yaml', 'w'))
Verify before relying
- Current maintenance status relative to the original ruamel.yaml—whether ruyaml is actively receiving feature parity updates
- Specific performance characteristics compared to ruamel.yaml or PyYAML for large YAML files
- Whether the package is suitable for production use given the last PyPI release was December 2021
Package facts
| License | MIT license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdistrosetuptools |
| Maintenance | Actively maintained 1,711 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,495,051 / month, #3,838 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 :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities |
Evidence: ruyaml-0.91.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 › “round-trip yaml serialization”
- ruyamlruyaml is a YAML parser and serializer that preserves comments,…
- yamlordereddictloaderProvides YAML loaders and dumpers for PyYAML that preserve key order…
- ruamel.yamlLoads and dumps YAML 1.2 with round-trip preservation of comments,…
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 ruamel.yaml · yaml-rs · ruamel.yaml.clib · ruamel.yaml.string · ruamel.yaml.jinja2 · yamlpath · sphinxcontrib-autoyaml · yamlfix · pyaml · strictyaml