Go to file
openharmony_ci a5f9918ab3
!15 修改PyYaml开源属性
Merge pull request !15 from 曹小刚/master
2024-05-15 07:23:03 +00:00
.github upgrade version of pyyaml from 6.0 to 6.0.1 2023-10-31 10:32:44 +08:00
examples backup pyyaml from 6.0 to 5.4.1 2022-03-16 17:10:07 +08:00
lib 开源火车版本升级 2024-04-09 15:59:28 +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 version of pyyaml from 6.0 to 6.0.1 2023-10-31 10:32:44 +08:00
bundle.json bug: change the component name to PyYAML 2023-08-14 16:14:16 +08:00
CHANGES 开源火车版本升级 2024-04-09 15:59:28 +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
PKG-INFO 开源火车版本升级 2024-04-09 15:59:28 +08:00
pyproject.toml 开源火车版本升级 2024-04-09 15:59:28 +08:00
README.md Upgrade verion of PyYAML from 5.4.1 to 6.0 2022-06-17 16:30:40 +08:00
README.OpenSource 修改PyYaml开源属性 2024-05-15 14:16:21 +08:00
setup.cfg 开源火车版本升级 2024-04-09 15:59:28 +08:00
setup.py 开源火车版本升级 2024-04-09 15:59:28 +08:00
tox.ini upgrade version of pyyaml from 6.0 to 6.0.1 2023-10-31 10:32:44 +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.