Skip to main content

Build Status Azure DevOps coverage

aspy.yaml

Some extensions to pyyaml.

Installation

pip install aspy.yaml

aspy.yaml.ordered_load

yaml.load which respects order for dictionaries in the yaml file.

>>> from aspy.yaml import ordered_load
>>> ordered_load(
        'foo: bar\n'
        'bar: baz\n'
        'herp: derp\n'
    )
OrderedDict([('foo', 'bar'), ('bar', 'baz'), ('herp', 'derp')])

aspy.yaml.ordered_dump

yaml.dump which respects order for dictionaries in the yaml file.

>>> from aspy.yaml import ordered_dump
>>> print(ordered_dump(
        OrderedDict((('a', '1'), ('b', '2'), ('c', '3'), ('d', '4'))),
        default_flow_style=False,
    ))
a: '1'
b: '2'
c: '3'
d: '4'

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aspy.yaml-1.3.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aspy.yaml-1.3.0-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aspy.yaml-1.3.0.tar.gz.

File metadata

  • Download URL: aspy.yaml-1.3.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for aspy.yaml-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e7c742382eff2caed61f87a39d13f99109088e5e93f04d76eb8d4b28aa143f45
MD5 1959a34873a6bdc1fba807023804867e
BLAKE2b-256 a1e92ee775d3e66319e08135505a1dd3cdba606b4da4caeb617eb3514d901b14

See more details on using hashes here.

File details

Details for the file aspy.yaml-1.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: aspy.yaml-1.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for aspy.yaml-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 463372c043f70160a9ec950c3f1e4c3a82db5fca01d334b6bc89c7164d744bdc
MD5 ad96ebcbdd043f9d8f608f3aecba58e3
BLAKE2b-256 99ce78be097b00817ccf02deaf481eb7a603eecee6fa216e82fa7848cd265449

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.3.0

2 files

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page