PyYAML
YAML parser and emitter for Python
Install
pyyaml on PyPI
pip
pip install pyyamluv
uv add pyyamlpoetry
poetry add pyyamlPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 322 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl; pyyaml-6.0.3-cp310-cp310-macosx_11_0_arm64.whl; pyyaml-6.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyyaml-6.0.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyyaml-6.0.3-cp310-cp310-musllinux_1_2_aarch64.whl; pyyaml-6.0.3-cp310-cp310-musllinux_1_2_x86_64.whl; pyyaml-6.0.3-cp310-cp310-win32.whl; pyyaml-6.0.3-cp310-cp310-win_amd64.whl; pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl; pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl; pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl; pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl; pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl; pyyaml-6.0.3-cp311-cp311-win32.whl; pyyaml-6.0.3-cp311-cp311-win_amd64.whl; pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl; pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl
About PyYAML
from the package's own PyPI description — quoted content, verbatim
YAML is a data serialization format designed for human readability and interaction with scripting languages. PyYAML is a YAML parser and emitter for Python.
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API, and sensible error messages. PyYAML supports standard YAML tags and provides Python-specific tags that allow to represent an arbitrary Python object.
PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistence.
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
PyYAML parses and emits YAML 1.1 data serialization format with Unicode support, pickle support, and Python object serialization for configuration files and data persistence.
Medium install friction due to compiled C extensions; wheels provided for Python 3.8–3.14 across macOS, Linux, Windows, and ARM architectures. Maintenance is active with latest release 2025-09-25 and ongoing repository activity.
MIT license is permissive, allowing commercial and private use with minimal restrictions—only attribution required.
Usage
pip install pyyaml==6.0.3
Requires Python >=3.8
Verdict: PyYAML is a mature, actively maintained top-100 package with no known vulnerabilities and broad Python version support (3.8–3.14). Medium install friction from compiled extensions is offset by comprehensive platform coverage and production-stable classification.
Needs verification
- Whether unsafe_load() or arbitrary object deserialization poses security risks in typical deployment contexts
- Performance characteristics compared to alternative YAML parsers for large or deeply nested documents
- Specific use cases where the capable extension API provides advantage over standard YAML parsing
Similar packages
permissive · top 1,000 on PyPI
ruamel.yaml.clibpermissive · top 1,000 on PyPI
pexpectpermissive · top 1,000 on PyPI
ruamel.yamlpermissive · top 1,000 on PyPI
cfgvpermissive · top 1,000 on PyPI
isodurationpermissive · top 1,000 on PyPI
setuptools-scmpermissive · top 1,000 on PyPI
cbor2permissive · top 1,000 on PyPI
Makopermissive · top 1,000 on PyPI
pyeepermissive · top 1,000 on PyPI