Registry / devops / spring-config-client-python

spring-config-client-python

JSON →
library0.1.3pypypi✓ verified 84d ago

Lightweight Spring Cloud Config client for Python, version 0.1.3, released April 2025. Fetches configuration from Spring Cloud Config Server and supports property sources merging. Active development with monthly releases.

pip install spring-config-client-python
INSTALL
IMPORT
SIG · SPRING-CONFIG-CLIE
S
spring-config-client-python
devopspythonv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpringConfigClient
from spring_config_client import SpringConfigClient
from spring_config_client.client import SpringConfigClient
v0.1.0 had client submodule; v0.1.1+ exports from top level

Initialize client with Spring Cloud Config Server URL, application name, and profile.

import os from spring_config_client import SpringConfigClient client = SpringConfigClient( uri=os.environ.get('SPRING_CONFIG_URI', 'http://localhost:8888'), name='myapp', profiles=os.environ.get('SPRING_CONFIG_PROFILE', 'default') ) config = client.get_config() print(config)
Debug
Known issues
breakingConstructor parameter name changed from 'app' (v0.1.0) to 'name' (v0.1.1+). Must update all code using 'app='.
fix
Replace SpringConfigClient(app=...) with SpringConfigClient(name=...)
affects: 0.1.0 -> 0.1.1+
deprecatedMethod get_config() may be renamed to fetch_config() in future v0.2.0. Check deprecation warnings in logs.
fix
Use get_config() for now, but prepare to use fetch_config() in the future.
affects: 0.1.3
gotchaIf profiles argument is omitted, the client uses 'default' profile. Spring Cloud Config Server may require comma-separated list; ensure profiles string has no spaces around commas.
fix
Use profiles='dev,staging' (no spaces).
affects: all
Errors
Common errors & fixes
AttributeError: module 'spring_config_client' has no attribute 'SpringConfigClient'
Trying to import from wrong module path or old version installed.
fix
Install latest version (pip install --upgrade spring-config-client-python) and use 'from spring_config_client import SpringConfigClient'
TypeError: __init__() got an unexpected keyword argument 'app'
Using deprecated argument name 'app' which was changed to 'name' in v0.1.1.
fix
Replace 'app' with 'name' in constructor call.
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8888): Max retries exceeded
Spring Cloud Config Server not running or URI incorrect.
fix
Set SPRING_CONFIG_URI environment variable to correct server URL, ensure server is running.
KeyError: 'propertySources'
Server response format is unexpected or empty; possibly wrong application name or profile.
fix
Verify server endpoints return valid JSON with propertySources array.
Upgrade
Version history
0.1.3latest on PyPI · released Oct 11, 2025
Audit
Dependencies
requestsrequiredHTTP client for Spring Config Server API calls
pyyamloptionalYAML parsing if server returns YAML format
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
2
Resources
spring-config-client-python — pip install spring-config-client-python · libregistry