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 location is a file path
- If key
spring.cloud.config.uri
andspring.application.name
is set- Load configuration from spring cloud config service and path configuration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ecmind_spring_config-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c62106b32344ecbca8fea04f66edce3101937032101be9af42831b4e2ca92389 |
|
MD5 | 592383dc014537620e40579cbdcb089c |
|
BLAKE2b-256 | ac01b49407c99fc0b2f28f42d19606e84d27fef3b21e01594df84f6f828d0e12 |
Close
Hashes for ecmind_spring_config-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aecd489419407e001cc4a920b1ab420c441a70c539a4ac23a4e2b6416e01416 |
|
MD5 | e2966abaf45628a4389a30b505df791e |
|
BLAKE2b-256 | 84174738d22359ec3b4892c43fa1461692b81ca30e902ebe1d74f9d87b87d3b3 |