Skip to main content

ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order

Project description

ruamel.yaml

ruamel.yaml is a YAML 1.2 loader/dumper package for Python.

https://readthedocs.org/projects/yaml/badge/?version=stable

ChangeLog

0.14.6 (2017-04-14):
  • binary, octal and hex integers are now preserved by default. This was a known deficiency. Working on this was prompted by the issue report (112) from devnoname120, as well as the additional experience with .replace() on scalarstring classes.

  • fix issues 114: cannot install on Buildozer (reported by mixmastamyk). Setting env. var RUAMEL_NO_PIP_INSTALL_CHECK will suppress pip-check.

0.14.5 (2017-04-04):
  • fix issue 109: None not dumping correctly at top level (reported by Andrea Censi)

  • fix issue 110: .replace on Preserved/DoubleQuoted/SingleQuoted ScalarString would give back “normal” string (reported by sandres23)

0.14.4 (2017-03-31):
  • fix readme

0.14.3 (2017-03-31):
0.14.2 (2017-03-23):
  • fix for old default pip on Ubuntu 14.04 (reported by Sébastien Maccagnoni-Munch)

0.14.1 (2017-03-22):
  • fix Text not available on 3.5.0 and 3.5.1 (reported by Charles Bouchard-Légaré)

0.14.0 (2017-03-21):
  • updates for mypy –strict

  • preparation for moving away from inheritance in Loader and Dumper, calls from e.g. the Representer to the Serializer.serialize() are now done via the attribute .serializer.serialize(). Usage of .serialize() outside of Serializer will be deprecated soon

  • some extra tests on main.py functions

0.13.14 (2017-02-12):
  • fix for issue 97: clipped block scalar followed by empty lines and comment would result in two CommentTokens of which the first was dropped. (reported by Colm O’Connor)

0.13.13 (2017-01-28):
  • fix for issue 96: prevent insertion of extra empty line if indented mapping entries are separated by an empty line (reported by Derrick Sawyer)

0.13.11 (2017-01-23):
  • allow ‘:’ in flow style scalars if not followed by space. Also don’t quote such scalar as this is no longer necessary.

  • add python 3.6 manylinux wheel to PyPI

0.13.10 (2017-01-22):
  • fix for issue 93, insert spurious blank line before single line comment between indented sequence elements (reported by Alex)

0.13.9 (2017-01-18):
  • fix for issue 92, wrong import name reported by the-corinthian

0.13.8 (2017-01-18):
  • fix for issue 91, when a compiler is unavailable reported by Maximilian Hils

  • fix for deepcopy issue with TimeStamps not preserving ‘T’, reported on StackOverflow Q&A by Quuxplusone

0.13.7 (2016-12-27):
  • fix for issue 85, constructor.py importing unicode_literals caused mypy to fail on 2.7 (reported by Peter Amstutz)

0.13.6 (2016-12-27):
  • fix for issue 83, collections.OrderedDict not representable by SafeRepresenter (reported by Frazer McLean)

0.13.5 (2016-12-25):
  • fix for issue 84, deepcopy not properly working (reported by Peter Amstutz)

0.13.4 (2016-12-05):
  • another fix for issue 82, change to non-global resolver data broke implicit type specification

0.13.3 (2016-12-05):
  • fix for issue 82, deepcopy not working (reported by code monk)

0.13.2 (2016-11-28):
  • fix for comments after empty (null) values (reported by dsw2127 and cokelaer)

0.13.1 (2016-11-22):
  • optimisations on memory usage when loading YAML from large files (py3: -50%, py2: -85%)

0.13.0 (2016-11-20):
  • if load() or load_all() is called with only a single argument (stream or string) a UnsafeLoaderWarning will be issued once. If appropriate you can surpress this warning by filtering it. Explicitly supplying the Loader=ruamel.yaml.Loader argument, will also prevent it from being issued. You should however consider using safe_load(), safe_load_all() if your YAML input does not use tags.

  • allow adding comments before and after keys (based on StackOveflow Q&A by msinn)


For older changes see the file CHANGES

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ruamel.yaml-0.14.6.tar.gz (239.8 kB view details)

Uploaded Source

Built Distributions

ruamel.yaml-0.14.6-cp36-cp36m-manylinux1_x86_64.whl (540.9 kB view details)

Uploaded CPython 3.6m

ruamel.yaml-0.14.6-cp35-cp35m-manylinux1_x86_64.whl (540.7 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.14.6-cp34-cp34m-manylinux1_x86_64.whl (547.3 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.14.6-cp33-cp33m-manylinux1_x86_64.whl (521.4 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.14.6-cp27-cp27mu-manylinux1_x86_64.whl (517.5 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.14.6-cp27-cp27m-manylinux1_x86_64.whl (517.4 kB view details)

Uploaded CPython 2.7m

File details

Details for the file ruamel.yaml-0.14.6.tar.gz.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6.tar.gz
Algorithm Hash digest
SHA256 d055555efa727b9830e31d2a5eb449701c1eeb702c196844bb004f22b19ab24b
MD5 6145402f3e3767add453483e2aabc9db
BLAKE2b-256 304fe41d65d7d2a3b80aef3c1efb1fd3cb14b9b874f4ad1c3c1f7be6b2f77db2

See more details on using hashes here.

File details

Details for the file ruamel.yaml-0.14.6-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f0c2a8d18843faf6a63fdf9d599c169c3dffb5be2b32cf56460512b029481cd9
MD5 3397cfc03466505fc7672e36cbb4b5d7
BLAKE2b-256 7f1b196a39837ccf11d8e9b2177216def765155cc689fe130a4c6c67df4435a6

See more details on using hashes here.

File details

Details for the file ruamel.yaml-0.14.6-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cc3c12fa56cf5d1618e9be7db50036ac8332539b98e2375e084128b828c8fb86
MD5 6b2a52df4bb5151642434565ba4fdc3b
BLAKE2b-256 e3d46bd17a3b217a8136f7e96bd78940c094a7325fc13813e736b0dd6d06c922

See more details on using hashes here.

File details

Details for the file ruamel.yaml-0.14.6-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 45948e70d45f368b8d92ec531610a6ad55bf35eba53c93aaf2ecaa46ad29d300
MD5 7893c3b6a64ca1e35f4ffaba76061606
BLAKE2b-256 e0f32d4448556192d5f647a0bf40c1c41a6438e8a0e6205efbd2b17723fda30f

See more details on using hashes here.

File details

Details for the file ruamel.yaml-0.14.6-cp33-cp33m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 12e093487d7c0330d57882568fd284c924d4d0c3f304d63688d5f6af5c2d1577
MD5 1c9744c82dbd68d7196c37bc0da61152
BLAKE2b-256 3dc82ab888b9d5be15a632fa346d3cb57bc1d2b83a27fc5b31604f6ece8c8885

See more details on using hashes here.

File details

Details for the file ruamel.yaml-0.14.6-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c1a9f39128b35825f8a10e2a7f61fcca3965204dff3973e382d345335ff80b06
MD5 d9233b349961ce4c27b69525eac6aa33
BLAKE2b-256 c564ba04989145976738f34bb4346ff7b6dda2bb8000fbf60f349cb9edfb7e7f

See more details on using hashes here.

File details

Details for the file ruamel.yaml-0.14.6-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ruamel.yaml-0.14.6-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b39f07e2c3f1e7f8d9d6edc4527ef0bdf2db2a34c32b19bb3b8103990e0f33f9
MD5 9d1f1af1f662eafb09547cbc5a212046
BLAKE2b-256 5c6977a81d583124a7ee05e0d44ad8f0457ecaadbe43db0e8d794d867daf82e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page