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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spring_centralized_config_client-2.0.tar.gz.
File metadata
- Download URL: spring_centralized_config_client-2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ede36487026710b4c9690b70e223d6b9e263cf4d69c62be32a6fbd96fe46b450
|
|
| MD5 |
96666ae1e230a0d976d164c3cabc7e72
|
|
| BLAKE2b-256 |
684065799057401b07974d37421dfa5e3dc615c2162492b2aa88826e2791765b
|
File details
Details for the file spring_centralized_config_client-2.0-py3-none-any.whl.
File metadata
- Download URL: spring_centralized_config_client-2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd836d54c00f037958c769571be97181f70b2b56f3c5a537db5fc930ac0fa1cc
|
|
| MD5 |
6e91967fe5c85ec9091b96fe2694501e
|
|
| BLAKE2b-256 |
313dec913a49545445e187af53b707d1d5ec91a1506ce7444118910453d339b9
|