Skip to content

bsimpson888/PyYamlObject

Repository files navigation

PyYamlObject

Object based representation of a YAML file

Basic usage:

imagine you got an yaml file with following content:

database:
    host: localhost
    user: dba
    passwd: secret
    dblist:
        - users
        - emails

Accessing the dblist would look like this:

import YamlObject

obj = YamlObject.YamlObject.load("test.yaml")
dblist = obj.database.dblist