Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
manuphatak committed Jan 1, 2016
1 parent 6c9d4ca commit 2af3623
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/basic_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python
# coding=utf-8
import json_config
import os

config = json_config.connect('categories.json')

config['comics']['dc']['batman']['antagonists'] = ['Scarecrow', 'The Joker', 'Bane']
config['comics']['marvel']['ironman']['antagonists'] = 'Ultron'

print(config.serialize())

os.remove('categories.json')

0 comments on commit 2af3623

Please sign in to comment.