{"id":28278,"library":"spring-config-client-python","title":"Spring Config Client Python","description":"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.","status":"active","version":"0.1.3","language":"python","source_language":"en","source_url":"https://github.com/tcivie/spring-config-client-python","tags":["spring-cloud-config","configuration","client","python"],"install":[{"cmd":"pip install spring-config-client-python","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for Spring Config Server API calls","package":"requests","optional":false},{"reason":"YAML parsing if server returns YAML format","package":"pyyaml","optional":true}],"imports":[{"note":"v0.1.0 had client submodule; v0.1.1+ exports from top level","wrong":"from spring_config_client.client import SpringConfigClient","symbol":"SpringConfigClient","correct":"from spring_config_client import SpringConfigClient"}],"quickstart":{"code":"import os\nfrom spring_config_client import SpringConfigClient\n\nclient = SpringConfigClient(\n    uri=os.environ.get('SPRING_CONFIG_URI', 'http://localhost:8888'),\n    name='myapp',\n    profiles=os.environ.get('SPRING_CONFIG_PROFILE', 'default')\n)\nconfig = client.get_config()\nprint(config)\n","lang":"python","description":"Initialize client with Spring Cloud Config Server URL, application name, and profile."},"warnings":[{"fix":"Replace SpringConfigClient(app=...) with SpringConfigClient(name=...)","message":"Constructor parameter name changed from 'app' (v0.1.0) to 'name' (v0.1.1+). Must update all code using 'app='.","severity":"breaking","affected_versions":"0.1.0 -> 0.1.1+"},{"fix":"Use get_config() for now, but prepare to use fetch_config() in the future.","message":"Method get_config() may be renamed to fetch_config() in future v0.2.0. Check deprecation warnings in logs.","severity":"deprecated","affected_versions":"0.1.3"},{"fix":"Use profiles='dev,staging' (no spaces).","message":"If 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install latest version (pip install --upgrade spring-config-client-python) and use 'from spring_config_client import SpringConfigClient'","cause":"Trying to import from wrong module path or old version installed.","error":"AttributeError: module 'spring_config_client' has no attribute 'SpringConfigClient'"},{"fix":"Replace 'app' with 'name' in constructor call.","cause":"Using deprecated argument name 'app' which was changed to 'name' in v0.1.1.","error":"TypeError: __init__() got an unexpected keyword argument 'app'"},{"fix":"Set SPRING_CONFIG_URI environment variable to correct server URL, ensure server is running.","cause":"Spring Cloud Config Server not running or URI incorrect.","error":"requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8888): Max retries exceeded"},{"fix":"Verify server endpoints return valid JSON with propertySources array.","cause":"Server response format is unexpected or empty; possibly wrong application name or profile.","error":"KeyError: 'propertySources'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}