{ "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 consul\n service = consul.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 DELETE /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 }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/javicacheiro/consul-service-discovery", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "consul-service-discovery", "package_url": "https://pypi.org/project/consul-service-discovery/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/consul-service-discovery/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/javicacheiro/consul-service-discovery" }, "release_url": "https://pypi.org/project/consul-service-discovery/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Python client for Consul Service Discovery API", "version": "0.1.2" }, "last_serial": 2117216, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "20da4fe658e9f35bd3acd023067c9166", "sha256": "c403f96e6fab7d5ade9177286ef3d640670496dbd2ca7a052821ac825f183852" }, "downloads": -1, "filename": "consul-service-discovery-0.1.0.tar.gz", "has_sig": false, "md5_digest": "20da4fe658e9f35bd3acd023067c9166", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2119, "upload_time": "2016-04-26T21:44:39", "url": "https://files.pythonhosted.org/packages/14/e4/7a8a5aed330b4f0f9ec3f5875addb2d9968dae28e7519035c58d0068bf87/consul-service-discovery-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b658d0ab891cb87f276e15c29f94b885", "sha256": "f4c58dcc2ec7bb763c2026be5abfe542bc04e5b4648cc52ec5facb106844f326" }, "downloads": -1, "filename": "consul-service-discovery-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b658d0ab891cb87f276e15c29f94b885", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2559, "upload_time": "2016-04-26T22:11:48", "url": "https://files.pythonhosted.org/packages/b9/3f/2bf83068108e8d9f93599e0cb5f0ec7e8f14a45d31d644e461d5595111a4/consul-service-discovery-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c1ea54e29ae44925b9404dd87ee667f0", "sha256": "9e9aafe10cc1abe6a175caa9ec59c05c86b5785646f1f41134db8797ad6bf007" }, "downloads": -1, "filename": "consul-service-discovery-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c1ea54e29ae44925b9404dd87ee667f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2533, "upload_time": "2016-05-15T22:13:26", "url": "https://files.pythonhosted.org/packages/30/03/5fc488559013fe50f70490d30db4a03b94eacfbdf9bf4bdf92338e7cd135/consul-service-discovery-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c1ea54e29ae44925b9404dd87ee667f0", "sha256": "9e9aafe10cc1abe6a175caa9ec59c05c86b5785646f1f41134db8797ad6bf007" }, "downloads": -1, "filename": "consul-service-discovery-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c1ea54e29ae44925b9404dd87ee667f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2533, "upload_time": "2016-05-15T22:13:26", "url": "https://files.pythonhosted.org/packages/30/03/5fc488559013fe50f70490d30db4a03b94eacfbdf9bf4bdf92338e7cd135/consul-service-discovery-0.1.2.tar.gz" } ] }