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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c83d6aa232e6ba9d83963086ca1f31000180e0dd1a3c8498251b229e6209ecf9 |
|
MD5 | 9ac01ab17822deb91e3283bd4af5205a |
|
BLAKE2b-256 | 6f03f0e68dab553e5e981216b608f1e6f42481e533304703e65dfc1599afa42a |
Close
Hashes for ecmind_spring_config-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583b0cca352d85a44e1ba3e49939c0dff4292c4d26cba3bbd64f99dc08eb495f |
|
MD5 | 91c8f34453f4191fd183485bcd5e64b8 |
|
BLAKE2b-256 | 9d142ffcb0ec9fab044a5bef98ee372fdd889ffb3bff10541eccb8c8af798536 |