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.11 (2016-09-06):
 - Fix issue 58 endless loop in scanning tokens (reported by
   Christopher Lambert)

0.12.10 (2016-09-05):
 - Make previous fix depend on unicode char width (32 bit unicode support
   is a problem on MacOS reported by David Tagatac)

0.12.8 (2016-09-05):
   - To be ignored Unicode characters were not properly regex matched
     (no specific tests, PR by Haraguroicha Hsu)

0.12.7 (2016-09-03):
   - fixing issue 54 empty lines with spaces (reported by Alex Harvey)

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.11.tar.gz (228.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.12.11-cp35-cp35m-manylinux1_x86_64.whl (531.3 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.12.11-cp34-cp34m-manylinux1_x86_64.whl (537.9 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.12.11-cp33-cp33m-manylinux1_x86_64.whl (511.9 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.12.11-cp27-cp27mu-manylinux1_x86_64.whl (507.9 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.12.11-cp27-cp27m-manylinux1_x86_64.whl (507.9 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

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

File hashes

Hashes for ruamel.yaml-0.12.11.tar.gz
Algorithm Hash digest
SHA256 543faef55e758532bde5f381121b51d659e4ccda5f7332a5e829884816a1de23
MD5 c67bb5205635f32999fa4d39bb673562
BLAKE2b-256 d12b8ae0c8df5e202c4492f3c8e593547d69a7b9d6e2ba4d6349cc737ea45c55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.11-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e4aec627ca8af35989614bbfa746fa2677eef4a74ebb692ba18fcafca5c7fc7d
MD5 aa258ba54fbd73f5cb7e037f9f20dc48
BLAKE2b-256 976299cac5e78e45cfffb0f4890c600fe478f8b61769a84c61c1f4508287c462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.11-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 81c3f4c899e4a59d705a7017961bc5a6045a4d8a4c8994775f63b2bec7f50226
MD5 6500f44098de43a309c036fc5c666633
BLAKE2b-256 900ff42e2491444ca01336ae306ac247a5f2eb8bff450686a4b561ef7c9946c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.11-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bd0376053205b5c566791ff7090343fd21ea5a542c266cbc28ad0d58d384d915
MD5 a397390b29d183207115428426e7e8f4
BLAKE2b-256 ab97ff9b587cae1f31b4fccf6ac3262aa3a893688196643a58c6364bed13f8c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.11-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8bb516661d6a5198ffcf140ac6c3e9a50be0fd6fca1539ddf77dcfceba8362fb
MD5 29e4f77ab1d89b489c743a15dab80050
BLAKE2b-256 92495ee480ad282bac49b8d2372c9ea31f5c9aef32a0457fb8599ffb831c432d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.11-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b395b9bfd3c4a8300604256915f979dc6471aa1eb0c324f02f999b93a6dbbf0a
MD5 29420e229581805060b02f8ca3f59092
BLAKE2b-256 126349dd63ecbc4da1942d9f47eba838dae8757acdfc76193aacd4eade3c729f

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