JSON configuration file parser
Project description
configpy is a JSON configuration file reader with support for variable look-ahead and look-behind, expressions, and comments.
Example
config_str = """ /* Some example configuration items */ { "a": 10, "b": 2, "c": "exp(${a} / ${b})", "d": "exp(${c} * ${a})", "e": "exp(${d} + 50)", "f": "exp(${e} - 25)" } """ config = Config(config_str) assert 10 == config.a assert 2 == config.b assert 5 == config.c assert 50 == config.d assert 100 == config.e assert 75 == config.f
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
configpy-0.3.tgz
(6.7 kB
view hashes)