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.12.6 (2016-09-03):
   - fixing issue 46 empty lines between top-level keys were gobbled (but
     not between sequence elements, nor between keys in netsted mappings
     (reported by Alex Harvey)

0.12.5 (2016-08-20):
  - fixing issue 45 preserving datetime formatting (submitted by altuin)
    Several formatting parameters are preserved with some normalisation:
    - preserve 'T', 't' is replaced by 'T', multiple spaces between date
      and time reduced to one.
    - optional space before timezone is removed
    - still using microseconds, but now rounded (.1234567 -> .123457)
    - Z/-5/+01:00 preserved

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

ruamel.yaml-0.12.6.tar.gz (227.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.12.6-cp35-cp35m-manylinux1_x86_64.whl (530.6 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.12.6-cp34-cp34m-manylinux1_x86_64.whl (537.2 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.12.6-cp33-cp33m-manylinux1_x86_64.whl (511.3 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.12.6-cp27-cp27mu-manylinux1_x86_64.whl (507.3 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.12.6-cp27-cp27m-manylinux1_x86_64.whl (507.3 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

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

File hashes

Hashes for ruamel.yaml-0.12.6.tar.gz
Algorithm Hash digest
SHA256 a9151ac37486dee7e5e8be2795572736c0396e9b5fba0f078ac62d72cff6e5c6
MD5 3af78d1da23c880233c877d074f66189
BLAKE2b-256 486a79e41e920b9398941ff770a60a3bfdee196dcc7f17622e287b1abe11076b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.6-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 43cdd3c76a3a111f020b93fd369b75e08879a7b7e2017bc94613f3807b7026cd
MD5 8fea37e5a362aeb937aad6fcb9ef5859
BLAKE2b-256 84fb1203b7753a9365e8d9bdca82ddbf737fbdf6642984c93e7c5dd9577821f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.6-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 88bdb3c67a8764ffa0c817c4194b948d7a9ce84e542e41cff96b022728bc9291
MD5 cfd9fec15da74fa2c4319f7f94fe579c
BLAKE2b-256 cbc647c183427558ab833df91f2e8349c25b84538fcfafc2c0f5bbb5d1b14e2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.6-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d89299bd5c3b4be41253e4ee907b76889b5d423c48c197c25b363a48211d8916
MD5 cb9215a94838f20ff43d79ad509916f4
BLAKE2b-256 4e53e4fcc0946a16ece4bfd8b1000dc8d5e8e175ee9fc23dc48316be555bcbd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.6-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 649aadbbc6ebd85b68716f0bf96e60ede00f5cc002e369862498fd7c53a8ce13
MD5 676b4c30d6d28cdc3204ed3adb223546
BLAKE2b-256 d44b1e9aa053b614e8b900e8a4b0ae94ebdd2e32fc4796f24aedaf2cf58d8309

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.6-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b10688fa658a1e0bda8e531b7a1bb5c84249af5bb6dcf2ae08306272648b871e
MD5 5c93d2304f704b325fb010b609db5ccc
BLAKE2b-256 848cd99017d77faf09bf70f5cee4b76c33e0524c10eb02efcbcff45d9c498060

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