spring-centralized-config-client

A library to fetch spring centralized config in decrypted flat format.


Keywords
spring, config, client, centralized, decrypted
License
MIT
Install
pip install spring-centralized-config-client==1.0

Documentation

A Python client to fetch configuration from Spring Config Server.

This package relies on requests library.

Installation

pip install spring-centralized-config-client

General Usage

from spring_centralized_config_client.client import SpringCentralizedConfigClient

client = SpringCentralizedConfigClient(
          app_name="app-name", # Required App Name
          profile="dev", # Optional, Default=dev
          branch="main", # Optional, Default=main
          url="http://localhost:9000", # Optional, Default=http://localhost:9000
          auth_required=True, # Optional, Enable basic authentication, Default=False
          username="username", # Optional, Required if Auth Required is True, Default=Empty String
          password="password", # Optional, Required if Auth Required is True, Default=Empty String
          flat_json=True, # Optional, If you want nested Json to be flatted, Default = False
          decrypt=True, # Optional, If you want to decrypt encryped configuration, Default = False
        )

print(client.get_config())

TODO

  • Add support for Flat Json
  • Add support for Decryption
  • Make decryption call in parallel