In [11]:
import yaml

In [17]:
with open('../examples/config.yml') as f:
    stations = yaml.load(f)
station = stations[0]
station['name']
station['cameras']
station['products']


Out[17]:
[{'name': 'count people', 'source': 'snap', 'type': 'products.people'},
 {'name': 'background subtract',
  'source': 'snap',
  'type': 'products.background_subtract'},
 {'name': 'merge', 'source': 'snap', 'type': 'products.merge'}]

In [ ]: