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.uriandspring.application.nameis set- Load configuration from spring cloud config service and path configuration
Metadata
Release files for ecmind-spring-config 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ecmind_spring_config-0.1.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ecmind_spring_config-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / ecmind_spring_config-0.1.1.tar.gz
| Download URL | ecmind_spring_config-0.1.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fcbd428acd190727ce5cb0f01ed83f2244aa777d6d5f4a9213120ecc8fa8343
|
|
BLAKE2b-256 checksum How to use checksums |
a5d095e3aeb09b066c2f4952ebbddcc58021e72f83b0514d43578ab725ea429b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / ecmind_spring_config-0.1.1-py3-none-any.whl
| Download URL | ecmind_spring_config-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce6ec6b7d85eb87bf048f68a6385f24de80e596aa3924edc5fa8f1a91a28b45a
|
|
BLAKE2b-256 checksum How to use checksums |
b2838373a3e2d25bbc0acc2514f7c5aea33ecaefb73ea53e563dfa90a5b44130
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|