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.16 (2016-09-21): - allow dot char (and many others) in anchor name Fix issue 72 (reported by Shalon Wood) - Slightly smarter behaviour dumping strings when no style is specified. Single string scalars that start with single quotes or have newlines now are dumped double quoted: "'abc\nklm'" instead of '''abc klm''' 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.16.tar.gz
(229.7 kB
view details)
Built Distributions
File details
Details for the file ruamel.yaml-0.12.16.tar.gz
.
File metadata
- Download URL: ruamel.yaml-0.12.16.tar.gz
- Upload date:
- Size: 229.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d996b67ccad788080ae0df748af9f7da1232b918a9d723552251b01f47b9e4 |
|
MD5 | 9b3e3ccdcd2bbb6ce0d284e1e4174b9d |
|
BLAKE2b-256 | cd2c708c1e1d298debd7510a62d8cc8b9769930b907446d9a730e4b2c84afa88 |
File details
Details for the file ruamel.yaml-0.12.16-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ruamel.yaml-0.12.16-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 532.3 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bdef05a2d4a05bdf953955e2a80e784625aa8940a521920d02f18348dd495e |
|
MD5 | 97161a9b5b77743bbb546fae74213aa5 |
|
BLAKE2b-256 | 0f794a6a203c2bbe397ce5b11b92f203dd7c1b2fdc68960b61b4aaef8fb16bfc |
File details
Details for the file ruamel.yaml-0.12.16-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ruamel.yaml-0.12.16-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 538.9 kB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d047488a05babc3e4bc587fb06f95005283f54d3f1d77b5d95239e287fc12df1 |
|
MD5 | 1c8ef2b54bc6546ea096aadb8e36f733 |
|
BLAKE2b-256 | 6dc7f96eb8186efd0fabe14cc8839150ba2ea6e21391d94a38224bdc74abe3bc |
File details
Details for the file ruamel.yaml-0.12.16-cp33-cp33m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ruamel.yaml-0.12.16-cp33-cp33m-manylinux1_x86_64.whl
- Upload date:
- Size: 513.0 kB
- Tags: CPython 3.3m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f826953e67be16509ab7b7e9226af7d0ba8a21bf8111a8d5ea284f425327ea35 |
|
MD5 | a07e41c12f1e001e07bedc1a39190106 |
|
BLAKE2b-256 | c39ab8e99c71252fa053f70d08f76f3ee05517b678885651c30b196d69b2b7e6 |
File details
Details for the file ruamel.yaml-0.12.16-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: ruamel.yaml-0.12.16-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 508.9 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14eb3b91b5325bb75a9f1bd51f8bc685c1f29cd4bda7de1364d37e79ff267be |
|
MD5 | bd339da55f99f2682162633f8cff67c4 |
|
BLAKE2b-256 | b313d667cf45c45e31fadd43235b21654b0caa1c2f66a3149576fbaa3f4042b5 |
File details
Details for the file ruamel.yaml-0.12.16-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: ruamel.yaml-0.12.16-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 509.0 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 841a76fc252d54d57a5c29aef87dfa1a642599b860bbdb0a59fc8adf7b2600a8 |
|
MD5 | cedc0bd4eb8e724fcc9cdbd78aa2b902 |
|
BLAKE2b-256 | 66891841faee734abcc330b77f220853cd0c8726c0cb1b11040c187a62307ded |