Skip to main content


Project description

`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:


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

    data = 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:

    assert not = "3"  # only now the content is in the data
  5. It supports deep copying.

  6. It’s integrated as a PyYaml serializer.

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

Project details

Download files

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

Files for yamldict, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size yamldict-1.1.0.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page