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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95b20a68d4d8b7179c4e862daf0efdab0e6f615427f71f62e1af92d9b4557379 |
|
MD5 | b725c8b3439b4d881abf5b8f32b6dab2 |
|
BLAKE2b-256 | 44c8a367abdd9abea0ed1b131b118b9f8d49ded7e16331fa164c04bf2ea5ed18 |
Close
Hashes for ecmind_spring_config-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db87702578d4371c9306bc3f910597334581ceac245e7c8ad846303547991894 |
|
MD5 | cb0d18632dca391bd4da3b15315130a5 |
|
BLAKE2b-256 | c3f9851b4f04174db478e3b6d99507a0b64b5ea752dbf1acea4f67fb4ec99774 |