Skip to main content

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

Project description

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

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

spring_centralized_config_client-1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

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