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
          decrypt=True, # Optional, If you want to decrypt configuration, Default = False
        )

print(client.get_config())

TODO

  • Add support for Decryption
  • Make decryption call in parallel

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

spring_centralized_config_client-2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file spring_centralized_config_client-2.0.tar.gz.

File metadata

File hashes

Hashes for spring_centralized_config_client-2.0.tar.gz
Algorithm Hash digest
SHA256 ede36487026710b4c9690b70e223d6b9e263cf4d69c62be32a6fbd96fe46b450
MD5 96666ae1e230a0d976d164c3cabc7e72
BLAKE2b-256 684065799057401b07974d37421dfa5e3dc615c2162492b2aa88826e2791765b

See more details on using hashes here.

File details

Details for the file spring_centralized_config_client-2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spring_centralized_config_client-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd836d54c00f037958c769571be97181f70b2b56f3c5a537db5fc930ac0fa1cc
MD5 6e91967fe5c85ec9091b96fe2694501e
BLAKE2b-256 313dec913a49545445e187af53b707d1d5ec91a1506ce7444118910453d339b9

See more details on using hashes here.

Supported by

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