Skip to main content

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()

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecmind_spring_config-0.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

ecmind_spring_config-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ecmind_spring_config-0.1.1.tar.gz.

File metadata

  • Download URL: ecmind_spring_config-0.1.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ecmind_spring_config-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fcbd428acd190727ce5cb0f01ed83f2244aa777d6d5f4a9213120ecc8fa8343
MD5 b4bc5ac105eb93b3f21c4d8d2464168d
BLAKE2b-256 a5d095e3aeb09b066c2f4952ebbddcc58021e72f83b0514d43578ab725ea429b

See more details on using hashes here.

File details

Details for the file ecmind_spring_config-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ecmind_spring_config-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce6ec6b7d85eb87bf048f68a6385f24de80e596aa3924edc5fa8f1a91a28b45a
MD5 e41c229314fe865308b03f2e7156bf1d
BLAKE2b-256 b2838373a3e2d25bbc0acc2514f7c5aea33ecaefb73ea53e563dfa90a5b44130

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page