A Python client to fetch configuration from [Spring Config Server](https://spring.io/projects/spring-cloud-config).
This package relies on [requests](https://pypi.org/project/requests/) library.
## Installation
```shell
pip install spring-centralized-config-client
```
## General Usage
```python
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
- [x] Add support for Decryption
- [ ] Make decryption call in parallel
Raw data
{
"_id": null,
"home_page": null,
"name": "spring-centralized-config-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": null,
"keywords": "spring, config, client, centralized, decrypted",
"author": null,
"author_email": "Himanshu Verma <himanshu.v09@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/68/40/65799057401b07974d37421dfa5e3dc615c2162492b2aa88826e2791765b/spring_centralized_config_client-2.0.tar.gz",
"platform": null,
"description": "A Python client to fetch configuration from [Spring Config Server](https://spring.io/projects/spring-cloud-config).\n\nThis package relies on [requests](https://pypi.org/project/requests/) library.\n\n## Installation\n\n```shell\npip install spring-centralized-config-client\n```\n\n## General Usage\n\n```python\nfrom spring_centralized_config_client.client import SpringCentralizedConfigClient\n\nclient = SpringCentralizedConfigClient(\n app_name=\"app-name\", # Required App Name\n profile=\"dev\", # Optional, Default=dev\n branch=\"main\", # Optional, Default=main\n url=\"http://localhost:9000\", # Optional, Default=http://localhost:9000\n auth_required=True, # Optional, Enable basic authentication, Default=False\n username=\"username\", # Optional, Required if Auth Required is True, Default=Empty String\n password=\"password\", # Optional, Required if Auth Required is True, Default=Empty String\n decrypt=True, # Optional, If you want to decrypt configuration, Default = False\n )\n\nprint(client.get_config())\n```\n\n## TODO\n\n- [x] Add support for Decryption \n- [ ] Make decryption call in parallel\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A library to fetch spring centralized config in decrypted flat format.",
"version": "2.0",
"project_urls": {
"Bug Tracker": "https://github.com/himanshuverma09/spring-centralized-config-client/issues",
"Homepage": "https://github.com/himanshuverma09/spring-centralized-config-client"
},
"split_keywords": [
"spring",
" config",
" client",
" centralized",
" decrypted"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "313dec913a49545445e187af53b707d1d5ec91a1506ce7444118910453d339b9",
"md5": "6e91967fe5c85ec9091b96fe2694501e",
"sha256": "fd836d54c00f037958c769571be97181f70b2b56f3c5a537db5fc930ac0fa1cc"
},
"downloads": -1,
"filename": "spring_centralized_config_client-2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6e91967fe5c85ec9091b96fe2694501e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 3980,
"upload_time": "2024-08-16T09:38:58",
"upload_time_iso_8601": "2024-08-16T09:38:58.572133Z",
"url": "https://files.pythonhosted.org/packages/31/3d/ec913a49545445e187af53b707d1d5ec91a1506ce7444118910453d339b9/spring_centralized_config_client-2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "684065799057401b07974d37421dfa5e3dc615c2162492b2aa88826e2791765b",
"md5": "96666ae1e230a0d976d164c3cabc7e72",
"sha256": "ede36487026710b4c9690b70e223d6b9e263cf4d69c62be32a6fbd96fe46b450"
},
"downloads": -1,
"filename": "spring_centralized_config_client-2.0.tar.gz",
"has_sig": false,
"md5_digest": "96666ae1e230a0d976d164c3cabc7e72",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 3403,
"upload_time": "2024-08-16T09:39:00",
"upload_time_iso_8601": "2024-08-16T09:39:00.427200Z",
"url": "https://files.pythonhosted.org/packages/68/40/65799057401b07974d37421dfa5e3dc615c2162492b2aa88826e2791765b/spring_centralized_config_client-2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-16 09:39:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "himanshuverma09",
"github_project": "spring-centralized-config-client",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "spring-centralized-config-client"
}