Skip to main content

yamldict

Project description

A library that allows accessing yaml content as a kind of a dictionary.

Features

  1. not a dictionary. That means properties such as get are still accessible from the object.

  2. Accessible via properties, and via indexes:

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

    assert not myyaml.this.property.does.not.exist
    myyaml.this.property = "3"  # only now the content is actually in the data
  4. Serializable

Installation

pip install yamldict

Project details


Download files

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

Source Distribution

yamldict-1.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page