Contents

PyYAML 6.0.3

0

YAML parser and emitter for Python

YAML parser and emitter for Python

Stars: 2850, Watchers: 2850, Forks: 567, Open Issues: 337

The yaml/pyyaml repo was created 14 years ago and the last code push was 4 months ago.
The project is very popular with an impressive 2850 github stars!

How to Install pyyaml

You can install pyyaml using pip

pip install pyyaml

or add it to a project with poetry

poetry add pyyaml

Package Details

Author
Kirill Simonov
License
MIT
Homepage
https://pyyaml.org/
PyPi:
https://pypi.org/project/PyYAML/
Documentation:
https://pyyaml.org/wiki/PyYAMLDocumentation
GitHub Repo:
https://github.com/yaml/pyyaml

Classifiers

  • Software Development/Libraries/Python Modules
  • Text Processing/Markup
No  pyyaml  pypi packages just yet.

Errors

A list of common pyyaml errors.

Code Examples

Here are some pyyaml code examples and snippets.

GitHub Issues

The pyyaml package has 337 open issues on GitHub

  • Enable CodeQL Python code scanning
  • ConstructorError handler accesses node.id causing AttributeError
  • IndexError in scan_tag() and check_key() on empty input
  • full_load() method shows inconsistent behavior when handling YAML tags.
  • Reader.peek(index) throws IndexError when the stream ends, instead of returning '\0'
  • Unhashable type: list in yaml.org example
  • [WORKAROUND] Unable to build PyYAML < 6.0.1 from source or sdist
  • "AttributeError: cython_sources" with Cython 3.0.0a10
  • Duplicate keys are not handled properly

See more issues on GitHub