Contents

PyYAML 6.0.1

0

YAML parser and emitter for Python

YAML parser and emitter for Python

Stars: 2414, Watchers: 2414, Forks: 491, Open Issues: 282

The yaml/pyyaml repo was created 12 years ago and the last code push was 2 weeks ago.
The project is very popular with an impressive 2414 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.

  • pyyaml AttributeError: cython_sources

    The Issue The problem was first reported on the PyYAML GitHub repository, under the issue titled AttributeError: ‘CythonSources’ with Cython 3.0.0a10. Users reported that when trying to install PyYAML from sources with Cython 3.0.0a10, the installation failed and threw an AttributeError: ‘CythonSources’. This issue was widely discussed, and several solutions were proposed by the community. In this blog post, we will go over these proposed solutions to help you navigate this compatibility issue.

Code Examples

Here are some pyyaml code examples and snippets.

GitHub Issues

The pyyaml package has 282 open issues on GitHub

  • dump with encoding="utf8" produces "latin"-encoded bytes
  • Octal numbers processed as strings
  • WIP: Attempt to get pyyaml to build with cython 3.0
  • Request: musllinux wheel
  • Correct usage of .add_path_resolver
  • PyYAML 5.3 & 6.0 – RecursionError: maximum recursion depth exceeded in comparison
  • WIP keep PyYAML build working on Cython3.0.0a10+
  • "AttributeError: cython_sources" with Cython 3.0.0a10
  • Change License year to 2022
  • Update representer.py
  • cannot import name 'CLoader' from 'yaml'
  • Add strict_whitespace implementation for cleaner multiline scalars
  • Remove some commented code.
  • Parsing of trailing TAB works differently for Python and C
  • Clarify that YAML 1.2 is not supported

See more issues on GitHub