{ "info": { "author": "tomwei7", "author_email": "tomwei7g@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# discovery-client\n\n[![CircleCI](https://circleci.com/gh/tomwei7/discovery-client.svg?style=svg)](https://circleci.com/gh/tomwei7/discovery-client)\n[![PyPI version](https://badge.fury.io/py/python-discovery-client.svg)](https://badge.fury.io/py/python-discovery-client)\n\npython client for discovery https://github.com/bilibili/discovery only support python3.\n\n### Install\n\n```bash\npip install python-discovery-client\n```\n\n### Usage\n\n```python\nfrom discovery import config_from_env, Client\n\n\n# register instance\nclient = Client(config_from_env('127.0.0.1:7771')) # use you discovery domain\nclient.register('your app name', ['http://127.0.0.1:8000'])\n\n# watch instance\ndef watch_callback(instances):\n print('instance change: %s', instances)\n\nclient.watch('your app name', watch_callback)\n\nclient.stop()\n```\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/tomwei7/discovery-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-discovery-client", "package_url": "https://pypi.org/project/python-discovery-client/", "platform": "", "project_url": "https://pypi.org/project/python-discovery-client/", "project_urls": { "Homepage": "https://github.com/tomwei7/discovery-client" }, "release_url": "https://pypi.org/project/python-discovery-client/0.5/", "requires_dist": [ "future" ], "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "summary": "python client for discovery a registry for resilient mid-tier load balancing and failover. https://github.com/bilibili/discovery", "version": "0.5" }, "last_serial": 5011443, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1eb867654d37c261690aed757fb4d3a7", "sha256": "60197d505f6e4e9166a41bb30d950bf3695e3a5ed31a3d6a9746d58abfb8eb59" }, "downloads": -1, "filename": "python_discovery_client-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1eb867654d37c261690aed757fb4d3a7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6750, "upload_time": "2019-03-29T07:07:07", "url": "https://files.pythonhosted.org/packages/7f/14/526ca89e4ea62144125ff6ad90c1bc54101c7be85241d6a7d0516ef3cc87/python_discovery_client-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73c9be57bc8a8014d815e7cb74952517", "sha256": "89d272cd7cdf29bb21c400cf68014e1cd860a1fd7ec69cda2dc3512f1562c235" }, "downloads": -1, "filename": "python-discovery-client-0.1.tar.gz", "has_sig": false, "md5_digest": "73c9be57bc8a8014d815e7cb74952517", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 4393, "upload_time": "2019-03-29T07:07:08", "url": "https://files.pythonhosted.org/packages/cf/bd/3bd1041e87e74608fe144153b78ebc281126795c2d40a92e30e9aabb8cf2/python-discovery-client-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ae5e180c69bf43d7a1a0118623e12197", "sha256": "33579734231b3235eb6bc3cbb8bad2aac354a985ad1ba388aebad029e4010fbc" }, "downloads": -1, "filename": "python_discovery_client-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ae5e180c69bf43d7a1a0118623e12197", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6904, "upload_time": "2019-03-29T07:13:32", "url": "https://files.pythonhosted.org/packages/46/26/0065372ad08a3b82ff99c26c20fc6dd0c5f0a2254642ad6c909980647f6e/python_discovery_client-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba35646ad61f7d38bffbcca5714c96d3", "sha256": "65c2d1a4fbe4b540efcee4caee919eb27fd9fc896b232a25b10392cda886c746" }, "downloads": -1, "filename": "python-discovery-client-0.2.tar.gz", "has_sig": false, "md5_digest": "ba35646ad61f7d38bffbcca5714c96d3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 4504, "upload_time": "2019-03-29T07:13:33", "url": "https://files.pythonhosted.org/packages/e0/a7/cb5e5fe9d39d0847b5c4cf90d83cafa55f62cd567a058e5507cb2142d3be/python-discovery-client-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "16e30efc8bd8ae7f0f57fabd6980e2b8", "sha256": "8946dfb65e95b388c72beec5486ee85878fb348695a82a607abc8188a2fda405" }, "downloads": -1, "filename": "python_discovery_client-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "16e30efc8bd8ae7f0f57fabd6980e2b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 7067, "upload_time": "2019-04-01T03:41:16", "url": "https://files.pythonhosted.org/packages/2e/86/e9e03f5be5b9bd1c137c88a8b287c9592b00f1c9140113500803894b36c4/python_discovery_client-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "415ddad904d985b1a5220feac2a57872", "sha256": "3704a0bd290f8bf6726ad3243391f6ea90c106eb4a5afe7217587dc6aa4d1570" }, "downloads": -1, "filename": "python-discovery-client-0.3.tar.gz", "has_sig": false, "md5_digest": "415ddad904d985b1a5220feac2a57872", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 4632, "upload_time": "2019-04-01T03:41:17", "url": "https://files.pythonhosted.org/packages/f3/6b/05be15d573ebc3e2c0ffae21c27f603407e788e4e3588914abc78a4f5e80/python-discovery-client-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "d3afb3568ff37f3bb15991086e91f53a", "sha256": "4b54807f5eb1f48369a5cf638ab14e775aeb93e82ac49b0f7b34d151ad941436" }, "downloads": -1, "filename": "python_discovery_client-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "d3afb3568ff37f3bb15991086e91f53a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 7066, "upload_time": "2019-04-01T04:10:10", "url": "https://files.pythonhosted.org/packages/f7/97/877172f099e5ce0cae182ee8e1c73b2c3065459208b3e636d0dba96b56c2/python_discovery_client-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0865de0fc18559c009647f8e0a026f6c", "sha256": "2f61926819f05b9787eaecea514c74b47736b3afc2022bfaf6d2106138930a5b" }, "downloads": -1, "filename": "python-discovery-client-0.4.tar.gz", "has_sig": false, "md5_digest": "0865de0fc18559c009647f8e0a026f6c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 4635, "upload_time": "2019-04-01T04:10:11", "url": "https://files.pythonhosted.org/packages/78/d9/83cc1fe87eba5edad4bddaaa1ff22fe0f3e5e6cfa378042b6d0574f19302/python-discovery-client-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "d7f6bd9183455f2265e139d54a6a3a85", "sha256": "d5faed61404f02f3fb4278437723bcda8fb28095628fa3dd6d1f523c72af67dd" }, "downloads": -1, "filename": "python_discovery_client-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "d7f6bd9183455f2265e139d54a6a3a85", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 7069, "upload_time": "2019-04-01T04:20:20", "url": "https://files.pythonhosted.org/packages/43/56/b7d49e4ea77194861f8018398c265544ec8623bb7101002502f5e10af3e6/python_discovery_client-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8142132fb1b2933fe4b26600dc1fc55", "sha256": "a1c505cedbe4fa5302ec285a78106aeca1cc4b821c20947651d8828ba46efbb0" }, "downloads": -1, "filename": "python-discovery-client-0.5.tar.gz", "has_sig": false, "md5_digest": "e8142132fb1b2933fe4b26600dc1fc55", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 4857, "upload_time": "2019-04-01T04:20:21", "url": "https://files.pythonhosted.org/packages/2a/93/1c0d9e5475ed79dabbe705d64d474a72cca95d78dbf71c57eec256b1776b/python-discovery-client-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7f6bd9183455f2265e139d54a6a3a85", "sha256": "d5faed61404f02f3fb4278437723bcda8fb28095628fa3dd6d1f523c72af67dd" }, "downloads": -1, "filename": "python_discovery_client-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "d7f6bd9183455f2265e139d54a6a3a85", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 7069, "upload_time": "2019-04-01T04:20:20", "url": "https://files.pythonhosted.org/packages/43/56/b7d49e4ea77194861f8018398c265544ec8623bb7101002502f5e10af3e6/python_discovery_client-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8142132fb1b2933fe4b26600dc1fc55", "sha256": "a1c505cedbe4fa5302ec285a78106aeca1cc4b821c20947651d8828ba46efbb0" }, "downloads": -1, "filename": "python-discovery-client-0.5.tar.gz", "has_sig": false, "md5_digest": "e8142132fb1b2933fe4b26600dc1fc55", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 4857, "upload_time": "2019-04-01T04:20:21", "url": "https://files.pythonhosted.org/packages/2a/93/1c0d9e5475ed79dabbe705d64d474a72cca95d78dbf71c57eec256b1776b/python-discovery-client-0.5.tar.gz" } ] }