{ "info": { "author": "realbucksavage", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Java Libraries" ], "description": "# spring-config-client\n\nA Python client for [Spring Config Server](https://spring.io/projects/spring-cloud-config).\n\nThis library is inspired by [amenezes/config-client](https://github.com/amenezes/config-client) and is essentially a toned-down fork that I customized to fit my own needs.\n\n## Project goals\n\n- [x] Provide a basic client\n- [x] Provide basic authentication\n- [ ] Add support for CloudFoundry\n\n## Installation\n\nInstall using `pip`\n\n```shell\n$ pip install spring-config-client\n```\n\n## Usage\n\nThe very basic usage of this library looks like this:\n\n```python\nfrom spring_config import ClientConfigurationBuilder\nfrom spring_config.client import SpringConfigClient\n\nconfig = ClientConfigurationBuilder().app_name(\"test-application\").build()\n\nc = SpringConfigClient(config)\nc.get_config()\n```\n\nBy default, `ClientConfigurationBuilder` builds a `ClientConfiguration` object with server address and application profile set to `http://localhost:8888` and `development`. These can be changed like this:\n\nHere are some examples:\n\n```python\n# Fetch from http://someserver.com using profile \"development\"\nconfig = (\n ClientConfigurationBuilder()\n .app_name(\"test-application\")\n .address(\"http://someserver.com\")\n .build()\n)\n\n# Fetch from http://someserver.com using profile \"production\"\nconfig = (\n ClientConfigurationBuilder()\n .app_name(\"test-application\")\n .address(\"http://someserver.com\")\n .profile(\"production\")\n .build()\n)\n```\n\n### Authentication\n\nIf your configuration server requires to use basic authentication, you can create the client configuration like this:\n\n```python\nfrom spring_config import ClientConfigurationBuilder\n\nconfig = (\n ClientConfigurationBuilder()\n .app_name(\"test-application\")\n .authentication((\"username\", \"password\"))\n .build()\n)\n```\n\n### Configuration options\n\nThe `ClientConfigurationBuilder` allow controlling these parameters.\n\n- Application Name : `app_name(\"some-app\")` - Default `None`, required.\n- Server Address : `address(\"http://some-server\")` - Default `http://localhost:8888`, optional.\n- Profile : `profile(\"production\")` - Default `development`, optional.\n- Branch : `branch(\"devel/0.1\")` - Default `master`, optional.\n\n## Requesting features\n\nPlease use the [issues section](https://github.com/realbucksavage/spring-config-client/issues) to request new features and I will try to take out my time to work on them. Contributions in any sorts are always welcome :)\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://realbucksavage.github.io/spring-config-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "spring-config-client", "package_url": "https://pypi.org/project/spring-config-client/", "platform": "", "project_url": "https://pypi.org/project/spring-config-client/", "project_urls": { "Code": "https://github.com/realbucksavage/spring-config-client", "Documentation": "https://github.com/realbucksavage/spring-config-client", "Homepage": "https://realbucksavage.github.io/spring-config-client", "Issue tracker": "https://github.com/realbucksavage/spring-config-client/issues" }, "release_url": "https://pypi.org/project/spring-config-client/0.2/", "requires_dist": [ "requests (>=2.22.0)" ], "requires_python": ">=3.6.0", "summary": "A client for Spring Config Server", "version": "0.2" }, "last_serial": 5902893, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "daaaf5752538cde2118248b6e6a3291e", "sha256": "706b88d591b3f54745939338ec552bd7d84b103e866cc366da4884e6ffd29d45" }, "downloads": -1, "filename": "spring_config_client-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "daaaf5752538cde2118248b6e6a3291e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 4555, "upload_time": "2019-09-18T13:20:06", "url": "https://files.pythonhosted.org/packages/ac/c9/27a3b22c0515a795ab7b67d21a65d182da02551fd0d9e0973886ae075f5b/spring_config_client-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a94d0ac796de742c576bd9158914f086", "sha256": "92e1eec98d8626de85d9eca180b386d7c0dee35760fca2937dc245dc466374b7" }, "downloads": -1, "filename": "spring-config-client-0.1.tar.gz", "has_sig": false, "md5_digest": "a94d0ac796de742c576bd9158914f086", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 3188, "upload_time": "2019-09-18T13:20:30", "url": "https://files.pythonhosted.org/packages/b3/1f/da4bc90ec16c9609c3a1568fcfde5e983e99c67e0439ff024dbef8424ed7/spring-config-client-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "cd06bde1f5b6a28ba789e5cf13f3b79b", "sha256": "f847e673f1f7b8c2cde4a74bf41821d365819fe3c3f3092957d954f0c9c452a3" }, "downloads": -1, "filename": "spring_config_client-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cd06bde1f5b6a28ba789e5cf13f3b79b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 5137, "upload_time": "2019-09-29T15:31:07", "url": "https://files.pythonhosted.org/packages/a1/a9/3001f191231ada44271decc421380bd420a8b07dcbeff5e57a50562362a1/spring_config_client-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aebd298d004c76f74e528b609535241b", "sha256": "a794610c9eb2d3b082f7058b63c6c9cb45fa66b70bde1b96a86aeee41fc1f16c" }, "downloads": -1, "filename": "spring-config-client-0.2.tar.gz", "has_sig": false, "md5_digest": "aebd298d004c76f74e528b609535241b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 3695, "upload_time": "2019-09-29T15:31:09", "url": "https://files.pythonhosted.org/packages/05/5d/424c72107948fef2f44d30e0336bea150caad96d4b569cf36485846fcf15/spring-config-client-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd06bde1f5b6a28ba789e5cf13f3b79b", "sha256": "f847e673f1f7b8c2cde4a74bf41821d365819fe3c3f3092957d954f0c9c452a3" }, "downloads": -1, "filename": "spring_config_client-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cd06bde1f5b6a28ba789e5cf13f3b79b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 5137, "upload_time": "2019-09-29T15:31:07", "url": "https://files.pythonhosted.org/packages/a1/a9/3001f191231ada44271decc421380bd420a8b07dcbeff5e57a50562362a1/spring_config_client-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aebd298d004c76f74e528b609535241b", "sha256": "a794610c9eb2d3b082f7058b63c6c9cb45fa66b70bde1b96a86aeee41fc1f16c" }, "downloads": -1, "filename": "spring-config-client-0.2.tar.gz", "has_sig": false, "md5_digest": "aebd298d004c76f74e528b609535241b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 3695, "upload_time": "2019-09-29T15:31:09", "url": "https://files.pythonhosted.org/packages/05/5d/424c72107948fef2f44d30e0336bea150caad96d4b569cf36485846fcf15/spring-config-client-0.2.tar.gz" } ] }