Skip to main content

A standard INI style configuration parser.

Project description

This is the Python configparser with an extra class StdConfigParser. The StdConfigParser class uses specified parameters to initialize the Python ConfigParser and adds some useful converters. The result is a simple well defined syntax for the INI file. See it as a preconfigured ConfigParser class for you. It allows interoperability in configuration between different projects.

Also contains everything to be a backport of the ConfigParser from Python 3.5 to Python 2.7.

Everything in one module easy to vendor or install as extra dependency.

Documentation

ChangeLog

Source code on github

Example config file:

[section]
key = value

envlisting = env1,env2,env3

valuelist = multi line
            values
            # with comment
            fetchable as list

complex_json_value = {
    "key 1": 1,
    "key 2": 2,
    # special list of environments
    "env list": ["a", "b"],
    }

[other_section]
name = ${section:key}-substitution

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

StdConfigParser-0.6.dev0.zip (20.8 kB view details)

Uploaded Source

Built Distribution

StdConfigParser-0.6.dev0-py2.py3-none-any.whl (18.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file StdConfigParser-0.6.dev0.zip.

File metadata

File hashes

Hashes for StdConfigParser-0.6.dev0.zip
Algorithm Hash digest
SHA256 e724eba4fbb00c8f8e5da198975c9443759fe44ae4fc6d900e515e2466257c6c
MD5 20e960446ef0442227f3b314fc5359f7
BLAKE2b-256 7b07ffdac3a811d0192ef558542108900b666db687cd21b6952536f1ce26656e

See more details on using hashes here.

File details

Details for the file StdConfigParser-0.6.dev0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for StdConfigParser-0.6.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc036a24d5e5000af72c30d51c9f9ca3f1388bbb65aa78a28119382a051c04e4
MD5 3a6fbc7dd0db4f963a94cfcbc7f9e00f
BLAKE2b-256 6dd67cdd1d16b1c5197bb099beff158e88e0ecc9912d50719de206dd94dc0b35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page