Skip to main content

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 key spring.cloud.config.uri and spring.application.name is 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)

Source distribution for ecmind-spring-config 0.1.1
File Size Uploaded
ecmind_spring_config-0.1.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ecmind-spring-config 0.1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page