Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 403 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 403 Bytes

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