MCPcopy Index your code
hub / github.com/yaml/pyyaml

github.com/yaml/pyyaml @6.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release 6.0.3 ↗ · + Follow
707 symbols 2,009 edges 47 files 41 documented · 6% 571 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PyYAML

A full-featured YAML processing framework for Python

Installation

To install, type python setup.py install.

By default, the setup.py script checks whether LibYAML is installed and if so, builds and installs LibYAML bindings. To skip the check and force installation of LibYAML bindings, use the option --with-libyaml: python setup.py --with-libyaml install. To disable the check and skip building and installing LibYAML bindings, use --without-libyaml: python setup.py --without-libyaml install.

When LibYAML bindings are installed, you may use fast LibYAML-based parser and emitter as follows:

>>> yaml.load(stream, Loader=yaml.CLoader)
>>> yaml.dump(data, Dumper=yaml.CDumper)

If you don't trust the input YAML stream, you should use:

>>> yaml.safe_load(stream)

Testing

PyYAML includes a comprehensive test suite. To run the tests, type python setup.py test.

Further Information

License

The PyYAML module was written by Kirill Simonov xi@resolvent.net. It is currently maintained by the YAML and Python communities.

PyYAML is released under the MIT license.

See the file LICENSE for more details.

Core symbols most depended-on inside this repo

peek
called by 91
lib/yaml/reader.py
get_mark
called by 69
lib/yaml/reader.py
forward
called by 61
lib/yaml/reader.py
check_token
called by 43
lib/yaml/scanner.py
add_constructor
called by 38
lib/yaml/constructor.py
get_token
called by 31
lib/yaml/scanner.py
write_indicator
called by 30
lib/yaml/emitter.py
write_indent
called by 24
lib/yaml/emitter.py

Shape

Method 428
Function 145
Class 134

Languages

Python100%

Modules by API surface

lib/yaml/scanner.py75 symbols
tests/legacy_tests/test_constructor.py72 symbols
lib/yaml/emitter.py63 symbols
lib/yaml/constructor.py57 symbols
tests/legacy_tests/canonical.py34 symbols
lib/yaml/representer.py33 symbols
lib/yaml/parser.py33 symbols
lib/yaml/__init__.py31 symbols
tests/legacy_tests/test_yaml_ext.py29 symbols
lib/yaml/tokens.py29 symbols
lib/yaml/events.py22 symbols
tests/legacy_tests/test_structure.py18 symbols

For agents

$ claude mcp add pyyaml \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact