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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 046b3060ef32215940e203f1f2eacc11638cdb76e84e646494a4462fb30de826 |
|
MD5 | ffbf0bdf96c16c9455b37e8f82532fce |
|
BLAKE2b-256 | 931572b0c5d4906039bccf8c85fce7ab6161efd322749491d6a61d53bd23e7d8 |
Close
Hashes for ecmind_spring_config-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1afc6cec4bb302f56a4c06b35d53cf7e99c4b7b058060cbf7bca4c3ec413826 |
|
MD5 | 56b0bee90f7a25cdd7d6a7bf1e871dd2 |
|
BLAKE2b-256 | fcdc34aa43263e5c6d98b84335ac9d7f713571f78e51b0107e4415ed0d81889a |