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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7861c53797119842ab03f87ae67f9849967242b204a84cc2a033555ab94c34c1 |
|
MD5 | db4fa59be8a27dc2c8a17f305d950b1e |
|
BLAKE2b-256 | e1c01dc53a1ddb535ff46939b74f9b98bdeefdb18aa5951be930b5c915c4049c |
Close
Hashes for ecmind_spring_config-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75846cbcbb8f14e0f9c7011831c7c07c41e90536e609544593bf3e969e70643 |
|
MD5 | 4dd46357010eb6a03d4cb66c86dc3ef8 |
|
BLAKE2b-256 | e40ee48b333755dc7ae7b9a23596b35645c74fde4adda89a5bcf190d70352c19 |