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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0903cf4a73c1b77f491dda23f486d35edef595dedf19d0fc4dbc1e748aff6583 |
|
MD5 | 9a95f1c1d2d4968579f2c01eaadaff35 |
|
BLAKE2b-256 | 9c3ae8359eff30556c0382e000d6f8d4efc28ed328fece9c8efbab3840948a97 |
Close
Hashes for ecmind_spring_config-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa92d4438c322caa5ae1ca9fafc40a5fdd165405a50681b5fd1d358170991a5 |
|
MD5 | 103ff34dab79289ff2d30f02dbd05924 |
|
BLAKE2b-256 | 6f387cf5eed238ea566797e8a4b78bd8f458762f7c3e5bd5f1ab39e1d352295e |