ecmind-spring-config-0.1.1
توضیحات
Helper module for spring alike configuration loading plus spring cloud config client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ecmind-spring-config-0.1.1 |
| نام | ecmind-spring-config |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ulrich Wohlfeil |
| ایمیل نویسنده | info@ecmind.ch |
| آدرس صفحه اصلی | https://gitlab.ecmind.ch/open/ecmind_spring_config |
| آدرس اینترنتی | https://pypi.org/project/ecmind-spring-config/ |
| مجوز | - |
# ECMind blue client: Spring
Helper module for spring alike configuration loading plus spring cloud config client
## Installation
`pip install ecmind_spring_config`
## Usage
```python
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 key `spring.cloud.config.uri` and `spring.application.name` is set
* Load configuration from spring cloud config service and path configuration
نیازمندی
| مقدار | نام |
|---|---|
| >=5.4.1 | PyYAML |
| >=0.3.0 | deepmerge |
| >=0.10.2 | toml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl ecmind-spring-config-0.1.1:
pip install ecmind-spring-config-0.1.1.whl
نصب پکیج tar.gz ecmind-spring-config-0.1.1:
pip install ecmind-spring-config-0.1.1.tar.gz