Skip to main content

Expansion of standard configuration files by Python functionality

Project description

Reads file with configurations and returns dictionary with sections and options. All options will be turned into python objects (DON’T FORGET PUT ALL STRING OPTIONS WITHIN QUOTES).

You can use @SECTION:OPTION@ notation to refer to existed python object, or $SECTION:OPTION$ to convert object back into a string and insert a string.

Returns option dictionary or raise an error. Empty dictionary indicates error with file opening, reading or parsing.

If confreader couldn’t turn option into some python object, this options is skipped and Warning message will put in logger.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

confpluspy-1.0.tar.bz2 (13.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page