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.

Source Distribution

just-config-20.3.tar.gz (1.9 kB view hashes)

Uploaded Source

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