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

Uploaded CPython 3.6m

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

Uploaded CPython 3.5m

ruamel.yaml-0.14.10-cp34-cp34m-manylinux1_x86_64.whl (548.9 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.14.10-cp33-cp33m-manylinux1_x86_64.whl (523.0 kB view details)

Uploaded CPython 3.3m

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

Uploaded CPython 2.7mu

ruamel.yaml-0.14.10-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.10.tar.gz.

File metadata

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

File hashes

Hashes for ruamel.yaml-0.14.10.tar.gz
Algorithm Hash digest
SHA256 d8254ae40cb0bc3efab02d4f2f5cd668b532f8b89f51d732e63b87b9ecf2bfc0
MD5 0dcd44ce6969c84f837b3d684efafb82
BLAKE2b-256 20a0ad3533b83749f88c0ac43eceaf6b749b40257068f0744c2402149d07d7ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c8d38b111a3591f7bd399b56cbe5555ad79627b9960cd21b5866781ea029560d
MD5 171df9a042abb98b9b99a6cf2126a4d7
BLAKE2b-256 5054d2af0f693cfe99f46c90435186cc73db1e0bda7ddab96671ff66f0dd1899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.10-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 71c87f8ae76c9fa52907cfeef6e87adcb19baf2f70aea5324128e23e15481205
MD5 a139050950aa1df7a8aee9d0e7d4cae8
BLAKE2b-256 68fef33e40468e6a51deb5bf0e88c1985e28d46927cd04102fdccd1a4784aea5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.10-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d39afbdac88bfbefb87453e88a3acec259a8851f12d633505c432fe4572e3f33
MD5 df99950b4ae2e6f9448e10cbc3feef9b
BLAKE2b-256 cff592bda2ece9e7b64ab19dc23ebd3b2323579e82d39bf8b5a645ebfae0e764

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.10-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 95bfb38423e208f748f6ed2511e9ab430238f2fd84e0718bcc78caba2165a39d
MD5 7d64a05893024feacd98d36a45a890b7
BLAKE2b-256 9739751d506642425e3fe55ddffb37dcff71eb298b6cec17babcd7a94cd0bce0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.10-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e715a940b577a7d4de646576e81e003f0c649c30166096e108748349b8c7bdee
MD5 2a451e000612fd510d296ec82104f7e5
BLAKE2b-256 52ebcf5e842562c846c820464df3df0c003ea0a8ce70f1d0c5b19aae6b9dad98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.14.10-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bd81bb3d56f90c1f130c1f1a6658094ac9ae259a43979ac408a79d07c74bc65e
MD5 699ed5f5c7c6acf5837e875ed712b852
BLAKE2b-256 a6c7fd72bf7eac4074190412db42b5376844491a5dd2f27bdbd94073d3125bd9

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