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.11 (2017-05-01):
  • fix for issue 103 allowing implicit documents after document end marker line (...) in YAML 1.2

0.14.10 (2017-04-26):
  • fix problem with emitting using cyaml

0.14.9 (2017-04-22):
0.14.8 (2017-04-19):
  • fix Text not available on 3.5.0 and 3.5.1, now proactively setting version guards on all files (reported by João Paulo Magalhães)

0.14.7 (2017-04-18):
  • round trip of integers (decimal, octal, hex, binary) now preserve leading zero(s) padding and underscores. Underscores are presumed to be at regular distances (i.e. 0o12_345_67 dumps back as 0o1_23_45_67 as the space from the last digit to the underscore before that is the determining factor).

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.11.tar.gz (242.1 kB view details)

Uploaded Source

Built Distributions

ruamel.yaml-0.14.11-cp36-cp36m-manylinux1_x86_64.whl (542.7 kB view details)

Uploaded CPython 3.6m

ruamel.yaml-0.14.11-cp35-cp35m-manylinux1_x86_64.whl (542.5 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.14.11-cp34-cp34m-manylinux1_x86_64.whl (549.1 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.14.11-cp33-cp33m-manylinux1_x86_64.whl (523.2 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.14.11-cp27-cp27mu-manylinux1_x86_64.whl (519.2 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.14.11-cp27-cp27m-manylinux1_x86_64.whl (519.2 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: ruamel.yaml-0.14.11.tar.gz
  • Upload date:
  • Size: 242.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ruamel.yaml-0.14.11.tar.gz
Algorithm Hash digest
SHA256 d35710b0aec7fbc0582042b63c70ba5b760a75ff8e950395757c15a3e893275b
MD5 9db79fd50c560c2fc38a511354fabd65
BLAKE2b-256 5a868df701c9de786f25f5f290d1e0b63374becd79149298b86527ebae83f130

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.11-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ade5b41b75727fb768bcca3cad0afaec69c0ee1317695410a01356618b391058
MD5 3d59d3c61284affd9b3105f68cd872c4
BLAKE2b-256 50cc75f17d751c19bae0d31628fbd80479223e1c3b3d29526d9ff74ed406ecae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.11-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4edc97bb1cfc8188c1edd2553a740134a586159c8bb73e8dbc6df7fa29dbea3e
MD5 2ad943b0a59ce2fee9c76f036f20521f
BLAKE2b-256 b69c187515f63015d6966be1c63845b45e02471f250da6fdcbccb3f4f4eacf09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.11-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 97a56261038bdd94d0d252eb1df7b963375aea7537cae99305654fa7f86e6db5
MD5 87888c440866f2c1601ffde57b2d3f4a
BLAKE2b-256 512c21373cb551ff6e815befb5903af7400e11ac5222922cc8e03c77a76c9c45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.11-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5347beee5a01bb4d2f825e216ae70bd8558ba7e508b5869ef71808208ab909e8
MD5 d572efeb610b1254132c0152b43a7903
BLAKE2b-256 f8399d39d3a93a6a4a54e53bde597143ed9263231b48a1dd64a05b03a26f8264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.11-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e0b26562e47e254ba0846bb19218609c321d55dff17df57fdf6c3e6727731b85
MD5 d4ece8efd619bbbc7bf6c78577a39aa2
BLAKE2b-256 0e10abb74afd83be3134000f4f9007b01c0fccec45b1860a644ebce18454acf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.11-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d900d97fde4bbe56a1a996f50f0bab4a49f824aaef615631771fbd9c025a8108
MD5 4c04d328aba00a40e645c50f832361da
BLAKE2b-256 b4f2184e4a11302720cedebc76d4366ce2273b19bb3e21b3c31805c1eb3ba64d

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