Skip to main content

Configuration manager using toml language.

Project description

pipeline status coverage report licence version python

prgconfig

prgconfig is a little library that ease the manage of configuration file written in toml. It comes with nice default. The minimum you have to specify is your program name then it does the rest. It aims to fit to standard in use for location of configuration file. It is also totally configurable to fit your needs.

Installation

Recommended installation is by using pip:

pip install prgconfig

Usage

PrgConfig is a dict like object.

Basic example:

from prgconfig import PrgConfig

config = PrgConfig("prgname")

config.load()

print(config["section"]["key"])

See the constructor of PrgConfig class to get an idea of possible configuration.

Roadmap

See issues with the enhancement tag

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

prgconfig-1.0.0.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

prgconfig-1.0.0-py3-none-any.whl (16.2 kB view hashes)

Uploaded Python 3

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