Skip to main content

Minimalistic library to handle configuration for the application

Project description

just_config

Minimalistic library to handle configuration for the application.

As for now, it will look for the configuration value in the following order:

  1. In system environment variables.
  2. In default.ini file in the current working directory
  3. In default.ini file in application-specific folder under user home directory

Usage:

>>> from just_config.configuration import Configuration
>>> cfg = Configuration()
>>> cfg['test']
'value'
>>> # If I store my configuration in ~/.app/default.ini
>>> cfg = Configuration('app')
>>> cfg['test']
'value'

Example configuration file:

[DEFAULT]
test=value

Project details


Download files

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

Files for just-config, version 20.3
Filename, size File type Python version Upload date Hashes
Filename, size just-config-20.3.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page