yamlable
A thin wrapper of PyYaml to convert Python objects to YAML and back.
What it is and what it does
yamlable is a thin wrapper around PyYaml that simplifies converting Python objects to YAML format and back. Instead of manually writing custom serialization logic for each class, you can use yamlable to handle the conversion automatically, treating YAML as a codec for your Python objects. It depends on PyYaml for the underlying YAML parsing and six for Python 2/3 compatibility.
The package is stable and permissively licensed, but it has been abandoned since July 2022 with no recent maintenance. If your codebase relies on Python 3.9 or earlier and your YAML needs are straightforward, it may work, but you should be aware that no updates or bug fixes will be released. The low install friction and small dependency footprint make it easy to add, but the lack of ongoing maintenance is a significant consideration for new projects.
Use it for:
- Serialize custom Python dataclasses or objects to YAML configuration files for easy human editing and version control
- Load YAML-based configuration files directly into typed Python objects without manual parsing boilerplate
- Build object-oriented plugins or codecs where YAML serves as the interchange format between components
- Export Python object hierarchies to YAML for debugging, logging, or data export workflows
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts Python objects to YAML and back using PyYaml as its underlying engine, allowing you to serialize and deserialize custom Python classes directly to and from YAML format.
Yes, but with conditions. Install if you need straightforward YAML serialization of Python objects and are working with Python 3.9 or earlier. The low install friction, permissive license, and lack of known vulnerabilities make it safe to add. However, do not install for new projects expecting ongoing maintenance or support—the package is abandoned and will not receive updates. For production systems requiring long-term stability, consider whether a maintained alternative or hand-rolled serialization logic would be more appropriate.
Install
yamlable on PyPI
pip
pip install yamlableuv
uv add yamlablepoetry
poetry add yamlableInstalling yamlable
Before you install
Low install friction with only two lightweight runtime dependencies (PyYaml and six). However, the package is abandoned—last updated 2022-07-06, over 1500 days ago—so no maintenance or bug fixes are forthcoming.
License in practice
BSD 3-Clause permissive license allows commercial and private use with minimal restrictions, requiring only that you retain the license notice.
Quickstart
pip install yamlable
import yamlable
# Convert a Python object to YAML
yaml_string = yamlable.dump(my_object)
# Load YAML back into a Python object
my_object = yamlable.load(yaml_string)
Verify before relying
- Whether the package works reliably with Python versions beyond 3.9 (last tested version in classifiers)
- Whether PyYaml security updates are automatically inherited or if yamlable requires explicit updates
- Real-world compatibility with modern YAML edge cases or complex nested object hierarchies
Package facts
| License | BSD 3-Clause (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — PyYaml, six |
| Maintenance | abandoned — 1,500 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,241/month — #14,088 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: yamlable-1.1.1-py2.py3-none-any.whl
Keywords: yaml, file, parsing, parse, load, dump, read, write, object, oo, oriented, codec, format, plugin, pyYaml
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyamlProduces human-readable, diff-friendly YAML…
permissive · top 5,000 on PyPI
jsonableProvides an abstract base class for defining…
permissive · top 15,000 on PyPI
saneyamlA lightweight PyYAML wrapper that reads and…
permissive · top 15,000 on PyPI
serpentSerpent serializes Python objects to…
permissive · top 15,000 on PyPI
ruamel.yaml.stringAdds a `dump_to_string` method to…
permissive · top 15,000 on PyPI
poyoParses a restricted subset of YAML into Python…
permissive · top 15,000 on PyPI
pycomposefileParses and deserializes Docker Compose files…
permissive · top 5,000 on PyPI
jsonconversionConverts arbitrary Python objects to JSON…
permissive · top 5,000 on PyPI
oyamloyaml is a drop-in replacement for PyYAML that…
permissive · top 5,000 on PyPI