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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ruamel.yaml-0.14.9-cp36-cp36m-manylinux1_x86_64.whl (542.4 kB view details)

Uploaded CPython 3.6m

ruamel.yaml-0.14.9-cp35-cp35m-manylinux1_x86_64.whl (542.2 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.14.9-cp34-cp34m-manylinux1_x86_64.whl (548.8 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.14.9-cp33-cp33m-manylinux1_x86_64.whl (522.9 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.14.9-cp27-cp27mu-manylinux1_x86_64.whl (518.9 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.14.9-cp27-cp27m-manylinux1_x86_64.whl (518.9 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

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

File hashes

Hashes for ruamel.yaml-0.14.9.tar.gz
Algorithm Hash digest
SHA256 9e6b83ee98e1b71195ae9afc1e41b57ce8e858d091564b58e8007a100545cf7c
MD5 227fa293b6a586dc96ef048446659b06
BLAKE2b-256 7019154d9ff85db1e70dfb4f91322327840e9cf0edfac286e858ab9345075d23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 73c963756ab873dbdac26e4c275e0ac50ab922711ae11845f240605d854e40fc
MD5 7604cc45b5f4cb4f4ad3b03a0ca72569
BLAKE2b-256 b9ac53a8d618a5c97b4cec493478d042992b3ca97487b40b8137fd78afd05bb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.9-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b68e304d1fc684b1ce323793e5c46bad83be06c4d3dd8ed386390666af6f207f
MD5 f49941a8109f0f05dadef6262c8a921c
BLAKE2b-256 094a91fc95047dcfbedec227fb4dddaaeb001a52ebd89103f590beb59002880d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.9-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 820cc40f21148f06a925d1dc66964ae038d797cbf946fd900711f86924952e81
MD5 fb97b32021bf6a9a1f6e0183b7ac2f80
BLAKE2b-256 92234c70286ee9cd4917933cbd29b53cc11f217047fec8d4cdca5286d8d7eaaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.9-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fdc4d6b3a868017fd47e2faeb05fb15e927b0f13604c38e524ae7631416dbca8
MD5 edbec8ee8ceb5f3e836c153c279770ba
BLAKE2b-256 a2fb4ef98ee82fb3a9e411e306b3bf70778f929e11898e47a5e8b5ebd43fe71e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.9-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c2ea52da22ddaf73861f9a921defa9d4646756d38e357dcf10322124792bcbaf
MD5 d064e5b194dbdc42d58fa5f76e5967e3
BLAKE2b-256 018e73733c8c0b84ee1a4f282027c225b2d2b354332d25ab53911a41cd188fda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.9-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9583a19502d4655cfe909a5a1aa8e7ad6ce94851bb493d74238076e0a942a899
MD5 d6baa916cc4e96a630de4c97a5000fc3
BLAKE2b-256 061475c26c34be1765fb07bfce644d9a876bd0f53c46c2fda392c54ba0ff62d2

See more details on using hashes here.

Supported by

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