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.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.8.tar.gz (241.5 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.8-cp36-cp36m-manylinux1_x86_64.whl (542.5 kB view details)

Uploaded CPython 3.6m

ruamel.yaml-0.14.8-cp35-cp35m-manylinux1_x86_64.whl (542.4 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.14.8-cp34-cp34m-manylinux1_x86_64.whl (549.0 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.14.8-cp33-cp33m-manylinux1_x86_64.whl (523.1 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.14.8-cp27-cp27mu-manylinux1_x86_64.whl (519.1 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.14.8-cp27-cp27m-manylinux1_x86_64.whl (519.1 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

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

File hashes

Hashes for ruamel.yaml-0.14.8.tar.gz
Algorithm Hash digest
SHA256 3d636ad1c7f5ee949d1bf10c09cdc8424d0cade3536c97a2b0c8973cd409a825
MD5 ac1e6838db652c5495974c31ff2dad11
BLAKE2b-256 429996379a49c8ccac7fa422d1d6a42e6b9e96bd4c9c817f9f0c12731025bd87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.8-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 36785bbab072acc233f6e476d4c5e096fbbd6149460242695697e612f8ab6b54
MD5 9175bbcb116dc749c1e772d05f24d96d
BLAKE2b-256 1451e70287665bfe6b43b72aeba915a68b980f103e48c39166330a7872dd06fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ebe17f9efcdedb070f07fa61f9e5739903f658ecb5cd379387d0c71a48ca6d7e
MD5 a28dae80d4929dd7d6e5c4cc0db69ecd
BLAKE2b-256 2b6903bf6af235bee77863f80bd96858c83d85509e8c3622d5490ce04b3aa124

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.8-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 decebaa0e0870d174824e86e394dec448fc591210db92e1466abaa68e77cb844
MD5 3bae218ca2d0402c5802722d659d861d
BLAKE2b-256 f18c361993886436e6eaa9bc5201c579aaf2f2f6a2f3d4696a2402bce8c08e6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.8-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8a19ab34f7880455d3045bd54b017b101b2094dd246f75426d73614eab6ee0d5
MD5 0db6ed4b74546c2b7c4dac0ad28f536e
BLAKE2b-256 d2ebef0e11c852fe86bfc33125158e8d4c71b802ae85fb97709328f50fc08aa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.8-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1d8f2e2bd82d1fd83e0f9db538431aea330c7b03fda7e1e365a56b206c14576b
MD5 3066e2aa94055d133d85f5c22df5a360
BLAKE2b-256 783d1f96b1f76e9df8ec536f8e26ff9e5dfd6906e9838b249125107dd0984d00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.8-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 17a5711cfebc2fd4b5ceaa665566061bbfa1ccc105d00ca8bf430d45b2db3685
MD5 243fef458f77384d0813a060660671c1
BLAKE2b-256 765a8dd31182d5b544ec360ef0abc512067a93568b9aa5e5ea8faa7b0254784a

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