Skip to main content

Helper module for spring alike configuration loading plus spring cloud config client

Project description

ECMind blue client: Spring

Helper module for spring alike configuration loading plus spring cloud config client

Installation

pip install ecmind_spring_config

Usage

from ecmind_spring_config.config import Config

config = Config()

my_value = config['my.key']

or

my_value = config['my']['key']

or

my_value = config.get['my.key', 42)

The following happens:

  • All Environement Parameter will be loaded
  • For each location (default are ./ and ./config/)
    • If location is a file path
      • Load file and patch the configuration
    • If location is a directory path
      • Load application.yml and patch the configuration if exists
      • For each Profile (default is 'default')
        • Load application-{profile}.yml and patch the configuration if exists
  • If key spring.cloud.config.uri and spring.application.name is set
    • Load configuration from spring cloud config service and path configuration

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

ecmind_spring_config-0.0.6.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

ecmind_spring_config-0.0.6-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

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