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.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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ruamel.yaml-0.12.4.tar.gz.
File metadata
- Download URL: ruamel.yaml-0.12.4.tar.gz
- Upload date:
- Size: 226.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae149963f57d19e7d824ae53840e1f9fb9b00037546e94c34112f4d3870482c
|
|
| MD5 |
d1a94f86625379f2583d546e36c5d685
|
|
| BLAKE2b-256 |
2818c661b0ca63c5250a4fb898db4253da080f65b54cbdbad050ed79e1bf6b07
|
File details
Details for the file ruamel.yaml-0.12.4-cp35-cp35m-manylinux1_x86_64.whl.
File metadata
- Download URL: ruamel.yaml-0.12.4-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 529.2 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb0afd305c34d58836a9a03938f3658f4cbf9840e71ffe1cbcce42915bedd361
|
|
| MD5 |
07cbe64de42d0f3fe3245aa577c101f3
|
|
| BLAKE2b-256 |
1aa4012c2d637610d6f453a49a9dfdaae1142571569da3f2250cc63a48243690
|
File details
Details for the file ruamel.yaml-0.12.4-cp34-cp34m-manylinux1_x86_64.whl.
File metadata
- Download URL: ruamel.yaml-0.12.4-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 535.8 kB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff522266d7a80fc7dcfb1e8b8adf2a8914774593c6eaac24e292d5d79550a05
|
|
| MD5 |
c9fc55dae5d0d60ec30dcf8e644fb851
|
|
| BLAKE2b-256 |
546d2111ad5f0ec160ed33c93b7a12cdc40f22abea5cfe2dfbdcace83c561ed6
|
File details
Details for the file ruamel.yaml-0.12.4-cp33-cp33m-manylinux1_x86_64.whl.
File metadata
- Download URL: ruamel.yaml-0.12.4-cp33-cp33m-manylinux1_x86_64.whl
- Upload date:
- Size: 509.8 kB
- Tags: CPython 3.3m
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cb0632c3478488788e03ae5160f087ee9f4d040fb71fa63e68de212ca7c2e15
|
|
| MD5 |
c3a55fb03710dfd7c3e21ea760762196
|
|
| BLAKE2b-256 |
5e140b3283fd916909320c3d77819ab526437b2306db506aa608cc6c896d2a0e
|
File details
Details for the file ruamel.yaml-0.12.4-cp27-cp27mu-manylinux1_x86_64.whl.
File metadata
- Download URL: ruamel.yaml-0.12.4-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 505.8 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
812f79ab31c0b90da768775ecd7c8b185c348d4cfcbdfbd32d491e3b1a155229
|
|
| MD5 |
b0fb05a91453b6c5bcaad615ef4cf442
|
|
| BLAKE2b-256 |
fca2f858a1e29c9a49724315e18f84a9fdf6e24d296d8e64c4a92a2e7b2badf9
|
File details
Details for the file ruamel.yaml-0.12.4-cp27-cp27m-manylinux1_x86_64.whl.
File metadata
- Download URL: ruamel.yaml-0.12.4-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 505.8 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f1584f013d24d9ecec23d7038dedaccc2998e5da2a90ff7eb789adedb566d56
|
|
| MD5 |
f18429d38fbe8933c5859503185af0e9
|
|
| BLAKE2b-256 |
f132a65226bd2de4d4216e53c180eafeb2b8ef723a9218b7abb38ea3aadff79f
|