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()
eureka_service_url = config['eureka.client.service-url.defaultZone']
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee467d043f8f9bc4d3e96ea14ea759166a71236c74083338d420775cd06673db |
|
MD5 | 6a26e496ec6fc41e1c7ae4170e15e2fc |
|
BLAKE2b-256 | 16b96ee64cd1503b728f5e2c7b0950cf4a510033fa901d2c4c6e2d638e976555 |
Close
Hashes for ecmind_spring_config-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17cb4700c09d3fabc26ee2e62e007e8a89bf3e3409d541ea8124fd4a31d5d667 |
|
MD5 | 55136e550821beefb43a435bfd40595c |
|
BLAKE2b-256 | e55559fbc23c3503a38e703fd8ff52d43491e48265693b2f460144493f303add |