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.1.0.tar.gz (4.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page