Skip to main content

Yamldict is a library that allows accessing YAML content as a kind of a dictionary. Its primary purpose is to allow reading and writing YAML content with ease.

To achieve that it has the following features:

Features

  1. Easy creation of complex structures from string or files:

    myyaml = yamldict.create("""
    - "item 1"
    - "item 2"
    """)
  2. Not a dictionary. That means a property such as get is still accessible from the object and isn’t a method on a dictionary.

    >>> x = yamldict.YamlDict()
    >>> x.get = "x"
    >>> x
    YamlDict() {'get': 'x'}
  3. Accessible via properties, or indexes:

    assert myyaml["item"] == myyaml.item
  4. Handles chained missing properties without creating them unless asked:

    >>> myyaml = yamldict.YamlDict()
    >>> assert not myyaml.this.property.doesnt.exist
    >>> myyaml
    YamlDict() {}
    >>> myyaml.some.other.property = "3"
    >>> myyaml
    YamlDict() {'some': {'other': {'property': '3'}}}
  5. It supports deep copying.

  6. It’s integrated as a PyYaml serializer.

  7. It supports pickle serialization.

  8. Type support, so you don’t need to do anything in projects using mypy.

Metadata

Release files for yamldict 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yamldict 1.2.1
File Size Uploaded
yamldict-1.2.1.tar.gz 7.5 kB Details

Release files / yamldict-1.2.1.tar.gz

Download URL yamldict-1.2.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
89d4a40fb5a7e596e8caf73fe8d768252890924d8ec94446f401750287f0a8fc
BLAKE2b-256 checksum
How to use checksums
c689cd0452cfb99205a85413d917cf07ac68df1aea62694346ddd2b1ba693bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page