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.
ChangeLog
0.12.14 (2016-09-21): - preserve round-trip sequences that are mapping keys (prompted by stackoverflow question 39595807 from Nowox) 0.12.13 (2016-09-15): - Fix for issue #60 representation of CommentedMap with merge keys incorrect (reported by Tal Liron) 0.12.11 (2016-09-06): - Fix issue 58 endless loop in scanning tokens (reported by Christopher Lambert) 0.12.10 (2016-09-05): - Make previous fix depend on unicode char width (32 bit unicode support is a problem on MacOS reported by David Tagatac) 0.12.8 (2016-09-05): - To be ignored Unicode characters were not properly regex matched (no specific tests, PR by Haraguroicha Hsu) 0.12.7 (2016-09-03): - fixing issue 54 empty lines with spaces (reported by Alex Harvey) 0.12.6 (2016-09-03): - fixing issue 46 empty lines between top-level keys were gobbled (but not between sequence elements, nor between keys in netsted mappings (reported by Alex Harvey) 0.12.5 (2016-08-20): - fixing issue 45 preserving datetime formatting (submitted by altuin) Several formatting parameters are preserved with some normalisation: - preserve 'T', 't' is replaced by 'T', multiple spaces between date and time reduced to one. - optional space before timezone is removed - still using microseconds, but now rounded (.1234567 -> .123457) - Z/-5/+01:00 preserved 0.12.4 (2016-08-19): - Fix for issue 44: missing preserve_quotes keyword argument (reported by M. Crusoe) 0.12.3 (2016-08-17): - correct 'in' operation for merged CommentedMaps in round-trip mode (implementation inspired by J.Ngo, but original not working for merges) - iteration over round-trip loaded mappings, that contain merges. Also keys(), items(), values() (Py3/Py2) and iterkeys(), iteritems(), itervalues(), viewkeys(), viewitems(), viewvalues() (Py2) - reuse of anchor name now generates warning, not an error. Round-tripping such anchors works correctly. This inherited PyYAML issue was brought to attention by G. Coddut (and was long standing https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515634) suppressing the warning: import warnings from ruamel.yaml.error import ReusedAnchorWarning warnings.simplefilter("ignore", ReusedAnchorWarning) 0.12.2 (2016-08-16): - minor improvements based on feedback from M. Crusoe https://bitbucket.org/ruamel/yaml/issues/42/ 0.12.0 (2016-08-16): - drop support for Python 2.6 - include initial Type information (inspired by M. Crusoe) 0.11.15 (2016-08-07): - Change to prevent FutureWarning in NumPy, as reported by tgehring ("comparison to None will result in an elementwise object comparison in the future") 0.11.14 (2016-07-06): - fix preserve_quotes missing on original Loaders (as reported by Leynos, bitbucket issue 38) 0.11.13 (2016-07-06): - documentation only, automated linux wheels 0.11.12 (2016-07-06): - added support for roundtrip of single/double quoted scalars using: ruamel.yaml.round_trip_load(stream, preserve_quotes=True) 0.11.0 (2016-02-18): - RoundTripLoader loads 1.2 by default (no sexagesimals, 012 octals nor yes/no/on/off booleans
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.12.15.tar.gz
(229.0 kB
view hashes)
Built Distributions
Close
Hashes for ruamel.yaml-0.12.15-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38b47ce209bdf60bfe19746db4576debbe20397597731cfa93dd596651744967 |
|
MD5 | 86b810bd6dd181ca25ff2e24a61c96bb |
|
BLAKE2b-256 | e2495d0ff7e3ac6e3880a1950422612b7f6552b7555577cc09bf0edfc1bee86d |
Close
Hashes for ruamel.yaml-0.12.15-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a78518084307604a8579bc8ee43830dcaf73c772ffc406312a995bfd701aab4 |
|
MD5 | ddbc1575735f11767079863228e1afe6 |
|
BLAKE2b-256 | 8affd4ce312c2d06639bef6a7d5998d340e9c1a30ecd17d643613a0520a811d0 |
Close
Hashes for ruamel.yaml-0.12.15-cp33-cp33m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ad361ce8487802f1b9fc13e70f13c7761801530e4b3363aba3cd5009193313c |
|
MD5 | 0c009894d49ad76b8cdf38b3c0a17914 |
|
BLAKE2b-256 | 37985f7015dbb78d32572c3ef49c5bae60775d8abf9d86fe595abf383e3a7de7 |
Close
Hashes for ruamel.yaml-0.12.15-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba4b35056e07a0babe032f29a19eb101b6f27bfb332315b8750f9f61a1eebea |
|
MD5 | 564b83b546e17a3a23d0a56df1ca5a90 |
|
BLAKE2b-256 | e964dacba8f07797de5f24e52356b6af8ba4aa1a646e507e35fe804a458761d8 |
Close
Hashes for ruamel.yaml-0.12.15-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a4e6a555e79a659f1e0d0e6ca6ce15cdc624638cca2b74ee7c1f8fc84d3fb2 |
|
MD5 | ef107a040a2539172aaa4662bbeab33e |
|
BLAKE2b-256 | a93fb916b4981addb90ef08d7f77c1c732d1d2f409c104f071a0e89f0cc54c21 |