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.0b2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file prgconfig-1.0.0b2.tar.gz.

File metadata

  • Download URL: prgconfig-1.0.0b2.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/4.19.0-12-amd64

File hashes

Hashes for prgconfig-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 f14030409bb534c77ec3d7fd381d8f3a3e37df7c30fef0a69f09289449f4d33f
MD5 740507e460af1309c133d25470681945
BLAKE2b-256 7cfcb3680ea23d09d69c1d2c8b9794f3eee73405b259f7a06a277bd609b441dd

See more details on using hashes here.

File details

Details for the file prgconfig-1.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: prgconfig-1.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/4.19.0-12-amd64

File hashes

Hashes for prgconfig-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fe9a9a8e134b37a115167fd1c892a32f360270056b429d4051da7e7d8bf239c
MD5 b410f0200c8858fd2b4d45af032b7de4
BLAKE2b-256 24f83dffa1c769cba3cb5693381a1643b4781f2caff1e54380dc290ed0530d4d

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