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": "${a} / ${b}", "d": "${c} * ${a}", "e": "${d} + 50", "f": "${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.4.tgz
(6.4 kB
view hashes)