Go to file
lyj_love_code 2dfd1dadb9 bug: change the component name to PyYAML
Signed-off-by: lyj_love_code <liangyujian2@huawei.com>
2023-08-14 16:14:16 +08:00
.github/workflows backup pyyaml from 6.0 to 5.4.1 2022-03-16 17:10:07 +08:00
examples backup pyyaml from 6.0 to 5.4.1 2022-03-16 17:10:07 +08:00
lib Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
packaging/build Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
tests Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
yaml Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
.gitignore Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
announcement.msg Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
bundle.json bug: change the component name to PyYAML 2023-08-14 16:14:16 +08:00
CHANGES Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
LICENSE 5.4 release 2021-01-19 14:07:59 -05:00
Makefile Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
MANIFEST.in Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
OAT.xml Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
pyproject.toml Add a newline character to end of pyproject.toml 2021-01-13 16:58:40 -05:00
README.md Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
README.OpenSource Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
setup.py Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
tox.ini Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00

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.