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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ca78ab8ef9972ff9b4e820fdb849dd193c5591409d93bd598e34509a7da4e92 |
|
MD5 | 9bf6c0b1045834dc3f09da07ddb771fc |
|
BLAKE2b-256 | f7f3e28eb098c08aa3914ed6f738074bed8802fb599d8a6f8541f8b192b25241 |
Close
Hashes for ecmind_spring_config-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e264d9f58db73412d25ffc582e0565b65802fd123a682b13e76eb8103c55e8 |
|
MD5 | 1a7edb79790158e0e68e1203e6098370 |
|
BLAKE2b-256 | a5cebcd338b3e8e656a632dbcdae33a78b58cfc93c22685f9a01310e65b4e5ad |