Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Canonical source repository for PyYAML

License

NotificationsYou must be signed in to change notification settings

yaml/pyyaml

Repository files navigation

A full-featured YAML processing framework for Python

Installation

To install, typepython setup.py install.

By default, thesetup.py script checks whether LibYAML is installed and ifso, 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 andemitter 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, typepython setup.py test.

Further Information

License

The PyYAML module was written by Kirill Simonovxi@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.


[8]ページ先頭

©2009-2025 Movatter.jp