Skip to content

Instantly share code, notes, and snippets.

View shaytangolova's full-sized avatar

shaytangolova

View GitHub Profile
@evansde77
evansde77 / pythonic_config.py
Created February 12, 2016 17:10
Example of wrapping a nested JSON config object in a simple python object that allows dynamic object.attr style access to the data elements
#!/usr/bin/env python
"""
example of using a simple python object to wrap a JSON
configuration mapping so that it can be accessed as
a python style object using conf.attr1.attr2.value
"""
CONF = {
"CREDENTIALS": {