settingslib

Settings wrapper
Download

settingslib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Pavlo Kapyshin
  • Publisher web site:
  • http://93z.org

settingslib Tags


settingslib Description

Settings wrapper settingslib is a simple settings wrapper. No 'sections'. Supports settings loading from objects and .py files. Works with Python 2.4 and higher.>>> from settingslib import Settings>>> settings = Settings('settings') # from module.>>> settings.A1>>> settings.get('SOME_OBJECT')'somemodule.some_object'>>> settings.get('SOME_OBJECT', imp=True)< SomeObject object at 0x... >>>> settings2 = Settings({'A': 1}, B=2)>>> settings22>>> settings.update(A=2, B=1)>>> settings.update({'A': 1, 'B': 2}) Requirements: · Python


settingslib Related Software