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.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.5.tar.gz (227.3 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.5-cp35-cp35m-manylinux1_x86_64.whl (530.4 kB view details)

Uploaded CPython 3.5m

ruamel.yaml-0.12.5-cp34-cp34m-manylinux1_x86_64.whl (537.0 kB view details)

Uploaded CPython 3.4m

ruamel.yaml-0.12.5-cp33-cp33m-manylinux1_x86_64.whl (511.1 kB view details)

Uploaded CPython 3.3m

ruamel.yaml-0.12.5-cp27-cp27mu-manylinux1_x86_64.whl (507.0 kB view details)

Uploaded CPython 2.7mu

ruamel.yaml-0.12.5-cp27-cp27m-manylinux1_x86_64.whl (507.1 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

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

File hashes

Hashes for ruamel.yaml-0.12.5.tar.gz
Algorithm Hash digest
SHA256 4d4b66f1e6229e3a1032cac73f3a440bfb4bee7411f030a8d1e517043a7acbf7
MD5 349bdb17a7993558190cd66ddcfdaead
BLAKE2b-256 b2ac24ea74b4dcc14e48022b91c88dbc34dd3eec3fab051c6de711018f69968c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.5-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 58ffee5636056c25b827216a21fee45623beebde3a3830dc47eb54add715aa92
MD5 80281d91758e5e914485756f598f20c5
BLAKE2b-256 070df31298ec6400bd573b4974ef08e0317ba1c33ce8b9ffcd3cf2d913e50c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.5-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7b4f1f72a882bb111ff76366b78f7986902ac16f1e218376cc27d42c7e8b8545
MD5 9243ffeee20a950abb1fd2157dcfcec1
BLAKE2b-256 42457b90bccc2d742834980fb723cb37c2631686ba05d33c47ab190922b684f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.5-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5d84e75fe44ba4d0ebc68d48be567ddb10d860aa1924ad32c396647587fb0972
MD5 fbbfea7fb4389468efb16446eae1ad20
BLAKE2b-256 bbcc48068f2697b6def43d7262631fd14fbed008477fe2f13e7a8cf2e0fb22b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.5-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9465dd0f30e6872b0bf1d0013366b4d23e1b4d58c3b65ef218a05907d68a1f70
MD5 75de1882cc7b4f4aa6b3026ad29400ff
BLAKE2b-256 82e89b27a0b1d4fa4cc2dc13536079cbd739c0169dcbd56b9ec99bd980b599fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ruamel.yaml-0.12.5-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8d1b2cecc2b43be9c6c1322c16877d50da7cb54a635fdb9b598304d6095aa5d4
MD5 bfb552e0fc24890a7f88854e732766d8
BLAKE2b-256 460d2430bc0d01b083b9e3faf8816d946320f25d5cad2172adfc29660a6cff19

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