Canonical source repository for PyYAML
Find a file
2021-09-02 09:23:19 -07:00
.github/workflows Run CI on PR base branch changes 2021-01-13 16:58:40 -05:00
examples Use full_load in yaml-highlight example (#359) 2019-12-20 20:38:46 +01:00
lib 5.4.1 release 2021-01-20 16:40:50 -05:00
lib3 5.4.1 release 2021-01-20 16:40:50 -05:00
packaging/build Build modernization (GHA, wheels, setuptools) (#407) 2021-01-13 16:58:40 -05:00
tests constructor.timezone: __copy_ & __deepcopy__ 2021-01-13 16:58:40 -05:00
yaml Build modernization (GHA, wheels, setuptools) (#407) 2021-01-13 16:58:40 -05:00
.appveyor.yml Add 3.9 to appveyor file for completeness sake 2021-01-13 16:58:40 -05:00
.gitignore Build modernization (GHA, wheels, setuptools) (#407) 2021-01-13 16:58:40 -05:00
announcement.msg 5.4.1 release 2021-01-20 16:40:50 -05:00
CHANGES 5.4.1 release 2021-01-20 16:40:50 -05:00
LICENSE 5.4 release 2021-01-19 14:07:59 -05:00
Makefile Changes for 4.1 release 2018-06-26 15:08:15 -07:00
MANIFEST.in Build modernization (GHA, wheels, setuptools) (#407) 2021-01-13 16:58:40 -05:00
pyproject.toml Add a newline character to end of pyproject.toml 2021-01-13 16:58:40 -05:00
README.md Change README format to Markdown 2021-09-02 09:23:19 -07:00
setup.cfg Squash/merge pull request #105 from nnadeau/patch-1 2019-03-08 09:09:48 -08:00
setup.py 5.4.1 release 2021-01-20 16:40:50 -05:00
tox.ini Add py29 to tox.ini envlist 2021-01-13 16:58:40 -05:00

PyYAML - The next generation YAML parser and emitter for Python.

Installing

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 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.