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-24.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

just_config-24.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file just-config-24.1.tar.gz.

File metadata

  • Download URL: just-config-24.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for just-config-24.1.tar.gz
Algorithm Hash digest
SHA256 cf53e6f49a9ba841565bce727b2d3808bd41794d000f8835f702c74b3552486e
MD5 3760d9fb92128e8a493016096bb14f68
BLAKE2b-256 57db8ff3e8e774f870cad7a38aa630a8f7ff400c89762aa73b0c25ff0202c482

See more details on using hashes here.

File details

Details for the file just_config-24.1-py3-none-any.whl.

File metadata

  • Download URL: just_config-24.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for just_config-24.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4580ec0e95fbf0a5e37bd6a0f32cdf3a0aeaf97d1ae63c0bfafe5e807e7f77d
MD5 020168930d248c0d626ad64669efc2e8
BLAKE2b-256 ad31fd4b2efa7ceac427d8c0a01f5069158f299181086924013b0496de29dfe0

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