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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49817b54c1d22d50cdadd826a07b031ce7a97297bf98c56e86aea5cfd1bc2817 |
|
MD5 | bc3547ff29b3eaffdaad4a4b2259f451 |
|
BLAKE2b-256 | a265e7e3fb020415e3b38d43b89a16db7e1bd22037f9c1cb8f23868d93cbd3fa |
Close
Hashes for ecmind_spring_config-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6615563cd9f0456ba7e46e3bafa7ad00fd44901ef40670b40a01d5a1f3039f4b |
|
MD5 | ae8b38e6fd646b62f96ae33a28a7124d |
|
BLAKE2b-256 | 0951afa6afa522afaff9dbe18f2886fedc43c36989288a3dafa6820c63270d14 |