- Notifications
You must be signed in to change notification settings - Fork529
Canonical source repository for PyYAML
License
yaml/pyyaml
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A full-featured YAML processing framework for Python
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)
PyYAML includes a comprehensive test suite.To run the tests, typepython setup.py test
.
For more information, check thePyYAML homepage.
Discuss PyYAML with the maintainers onMatrix athttps://matrix.to/#/#pyyaml:yaml.io orIRC #pyyaml irc.libera.chat
Submit bug reports and feature requests to thePyYAML bug tracker.
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.
About
Canonical source repository for PyYAML