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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9da9a42bc06bfabdb009ecb0451fe32b0b675cccfaa0b2a6546592a27f62eb0 |
|
MD5 | 6087694e24430c7a11ec232dcd553a3d |
|
BLAKE2b-256 | 5565095e78d57587d09e0dcd8b9c06e86b0d3d065c1d921e284c7fa959b5436d |
Close
Hashes for ecmind_spring_config-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad630ec5fcef8f0ab519fe77db756c2a05136b7d483883034fb2642077d3f62d |
|
MD5 | 6de0190c6af2e300b227b393da3def66 |
|
BLAKE2b-256 | 429be7512c9fbb1520019f1a94c17b1cd749551e07315b018910538642000879 |