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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prgconfig-1.0.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.9.2 Linux/5.18.0-0.deb11.4-amd64

File hashes

Hashes for prgconfig-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d0cc315f061c61b859d2163223fc05f5fcf648745ddddeea11635c8826a8e3d6
MD5 18da21cf752256a1badac9f19b806a0e
BLAKE2b-256 b1586699a40e7a913afaa2570bf1f62337cb10c6fd246e3e8b8a20739e5952e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prgconfig-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.9.2 Linux/5.18.0-0.deb11.4-amd64

File hashes

Hashes for prgconfig-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3891bdd6fafa0c441100846a2dd531c927cf760f292307534dbb8b32f92f350
MD5 2d783a3a2416722e593ffca5be8310ee
BLAKE2b-256 ad77ff8cb97558325aafd50ea86a160f61614f78c1f6961687e46ad4e41c475a

See more details on using hashes here.

Supported by

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