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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for spring_centralized_config_client-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029db0052dbda0614887cbf9d2977e8833600d85dfe1848b2d10cc8f2282b9a8 |
|
MD5 | 5cb65a3ebeb47fb129d4a9883dfe1605 |
|
BLAKE2b-256 | 6e3e4585114385fa710798d613329cb3d5a2b66025aaaa1d8c60d115648d4e6d |
Close
Hashes for spring_centralized_config_client-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 571d5772d123028ddf29d39e4e82b15fee6cffb92227988bdc01cced08d2b0a5 |
|
MD5 | 6f54ded3ac8f0e3d73d0e40440bf53c2 |
|
BLAKE2b-256 | 8234b60a48c9a60db37680f44757339ac97c568d94af0d6a1d8a37d5293aad5f |