Miscellaneous
Introduction to the Miscellaneous Utilities
Initialize Default Dictionaries
from cement.utils.misc import init_defaults
# create a dict with nested dicts
CONFIG = init_defaults('myapp',
'log.logging',
'output.json')
# setup the nested dicts
CONFIG['myapp']['foo'] = 'bar'
CONFIG['log.logging']['level'] = 'INFO'
CONFIG['output.json']['overridable'] = TrueTesting True Values
Minimal Logging
Random Strings
Limit Text Line Length
Last updated