{ "info": { "author": "Javier Cacheiro", "author_email": "javier.cacheiro@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Consul Service Discovery API\n----------------------------\nThis module provides a simple way to work with the \n`Consul Service Discovery API `_\nfrom python.\n\n\nExamples\n--------\nUsage examples::\n\n import consulsd\n service = consulsd.Client()\n service.register(id='flexlm1', name='flexlm',\n address='10.112.0.211', port=28518,\n tags=('flexlm1', light', 'v1'),\n check={'id': 'flexlm', 'name': 'flexlm on port 28518',\n 'tcp': '10.112.0.211:28518',\n 'Interval': '30s', 'timeout': '2s'})\n service.deregister(id='flexlm1')\n service.list()\n service.info(name='flexlm')\n\nThe registration/deregistration is done using the consul agent API::\n\n http://localhost:8500\n PUT /v1/agent/service/register\n PUT /v1/agent/service/deregister/\n\nTo query the information the catalog API is used::\n\n http://localhost:8500\n GET /v1/catalog/services\n GET /v1/catalog/service/bigdata\n GET /v1/catalog/nodes\n GET /v1/catalog/node/c13-9\n\nThe payload for the registration request has the following format::\n\n {\n \"ID\": \"flexlm1\",\n \"Name\": \"flexlm\",\n \"Tags\": [\"flexlm1\", light\", \"v1\"],\n \"Address\": \"10.112.0.211\",\n \"Port\": 28518,\n \"Check\": {\n \"id\": \"flexlm\",\n \"name\": \"flexlm on port 28518\",\n \"tcp\": \"10.112.0.211:28518\",\n \"Interval\": \"30s\",\n \"timeout\": \"2s\"\n }\n }\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/javicacheiro/consul-service-discovery", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "consul-sd", "package_url": "https://pypi.org/project/consul-sd/", "platform": "", "project_url": "https://pypi.org/project/consul-sd/", "project_urls": { "Homepage": "https://github.com/javicacheiro/consul-service-discovery" }, "release_url": "https://pypi.org/project/consul-sd/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Python client for Consul Service Discovery API", "version": "0.1.3" }, "last_serial": 4148079, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "38bc00f31a35ab7d4dcbbeb1b0316979", "sha256": "838c62c61b1aba3410e568fe9025b0d4845e42750e880b1fe83e04fa515509b8" }, "downloads": -1, "filename": "consul-sd-0.1.2.tar.gz", "has_sig": false, "md5_digest": "38bc00f31a35ab7d4dcbbeb1b0316979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1756, "upload_time": "2018-08-08T08:48:35", "url": "https://files.pythonhosted.org/packages/4b/3a/84de0a6f35a5429040c7f6aacccd8de838fc98859a5d07f2bd4d97ca2125/consul-sd-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "697d8fd4c09fd4fb1734c4de21fbf378", "sha256": "8910be42352f4a1e3ba64fe2e07fcfcc81a716b1d3667244c84b0d31251f3d8a" }, "downloads": -1, "filename": "consul-sd-0.1.3.tar.gz", "has_sig": false, "md5_digest": "697d8fd4c09fd4fb1734c4de21fbf378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2474, "upload_time": "2018-08-08T08:59:07", "url": "https://files.pythonhosted.org/packages/c0/fe/68f6748fb62a18fdaa5c6c123319385498245a54ee03bfe9e592472de20e/consul-sd-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "697d8fd4c09fd4fb1734c4de21fbf378", "sha256": "8910be42352f4a1e3ba64fe2e07fcfcc81a716b1d3667244c84b0d31251f3d8a" }, "downloads": -1, "filename": "consul-sd-0.1.3.tar.gz", "has_sig": false, "md5_digest": "697d8fd4c09fd4fb1734c4de21fbf378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2474, "upload_time": "2018-08-08T08:59:07", "url": "https://files.pythonhosted.org/packages/c0/fe/68f6748fb62a18fdaa5c6c123319385498245a54ee03bfe9e592472de20e/consul-sd-0.1.3.tar.gz" } ] }