This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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_json = """
/* Some example configuration items */
{
    "a": 10,
    "b": 2,
    "c": "{{ ${a} / ${b} }}",
    "d": "{{ ${c} * ${a} }}",
    "e": "{{ ${d} + 50 }}",
    "f": "{{ ${e} - 25 }}",
    "g": "'some text = {{ ${a} / ${b} }}'"
}
"""

config = Config(config_json)
10 == config.a
2 == config.b
5 == config.c
50 == config.d
100 == config.e
75 == config.f
"some text = 5" == config.g
Release History

Release History

This version
History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
configpy-0.5.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Jun 2, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting