Go to file
xuyong a5fe34d135 Update the file named OAT.xml
Signed-off-by: xuyong <xuyong59@huawei.com>
2022-01-13 19:06:03 +08:00
.github/workflows Update Python 3.10 versions for Windows build 2021-10-13 12:12:44 -07:00
examples Use full_load in yaml-highlight example (#359) 2019-12-20 20:38:46 +01:00
lib 6.0 release 2021-10-13 12:12:51 -07:00
packaging/build Omnibus CI/artifact build update 2021-09-29 13:53:30 -07:00
tests The yaml.load{,_all} functions require Loader= now 2021-09-23 14:43:55 -07:00
yaml Remove Python 2 support and simplify 2021-09-23 14:42:00 -07:00
.gitignore Move code from lib3 to lib 2021-09-22 15:52:05 +02:00
announcement.msg 6.0 release 2021-10-13 12:12:51 -07:00
CHANGES 6.0 release 2021-10-13 12:12:51 -07:00
LICENSE 5.4 release 2021-01-19 14:07:59 -05:00
Makefile Makefile tweaks 2021-09-23 14:42:00 -07:00
MANIFEST.in Move code from lib3 to lib 2021-09-22 15:52:05 +02:00
OAT.xml Update the file named OAT.xml 2022-01-13 19:06:03 +08:00
pyproject.toml Add a newline character to end of pyproject.toml 2021-01-13 16:58:40 -05:00
README.md 使用源生README 2022-01-11 11:28:07 +08:00
README.OpenSource Add readme file and some other configuration files. 2022-01-05 14:34:01 +08:00
setup.py 6.0 release 2021-10-13 12:12:51 -07:00
tox.ini Add Python 3.10 to tox.ini 2021-10-13 11:57:52 -07: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.