{ "info": { "author": "Jake Peyser", "author_email": "jepeyser@us.ibm.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Overview\n\n[![Build Status](https://travis-ci.org/IBM-Bluemix/service-discovery-client-python.svg?branch=master)](https://travis-ci.org/IBM-Bluemix/service-discovery-client-python)\n\nThis is the source code for bluemix-service-discovery, a pip package that serves as a client to Python apps attempting to interact with the Bluemix Service Discovery service.\n\n## How To Use\n\n1. Open a terminal and run\n\n ```bash\n pip install bluemix-service-discovery\n ```\n2. Import the package wherever you want to register your service or lookup a service in the registry.\n\n ```python\n from bluemix_service_discovery.service_publisher import ServicePublisher\n publisher = ServicePublisher('test-service', 300, 'UP',\n 'https://test-service.mybluemix.net', 'http',\n tags=['test'])\n\t```\n\n ```python\n import json\n from bluemix_service_discovery.service_locator import ServiceLocator\n services = json.loads(locator.get_services()).get('instances')\n ```\n\t\n\t\n\n## Example app\n\nTo see how to use this client in your app please check out the [Logistics Wizard](https://github.com/IBM-Bluemix/logistics-wizard) demo. You will want to pay attention to [server/web/\\_\\_init\\_\\_.py](https://github.com/IBM-Bluemix/logistics-wizard/blob/master/server/web/__init__.py) for a service registration and [server/utils.py](https://github.com/IBM-Bluemix/logistics-wizard/blob/master/server/utils.py) for a service lookup example.\n\n## More Info\n[Service Discovery](https://console.ng.bluemix.net/catalog/services/service-discovery/) \n[Documentation](https://console.ng.bluemix.net/docs/services/ServiceDiscovery/index.html)\n\n\n## License\n\nSee [License.txt](License.txt) for license information.", "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/IBM-Bluemix/service-discovery-client-python", "keywords": "service-discovery service-registry microservices", "license": "Apache-2.0", "maintainer": null, "maintainer_email": null, "name": "bluemix-service-discovery", "package_url": "https://pypi.org/project/bluemix-service-discovery/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bluemix-service-discovery/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/IBM-Bluemix/service-discovery-client-python" }, "release_url": "https://pypi.org/project/bluemix-service-discovery/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Python client for the Bluemix Service Discovery service", "version": "0.0.1" }, "last_serial": 2265288, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c860ac1cd61d18d18544fd7b95344129", "sha256": "62db6924cbe2e32571a8e546bc543f4162fd9570db46e1b22bdc05468b76e97e" }, "downloads": -1, "filename": "bluemix-service-discovery-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c860ac1cd61d18d18544fd7b95344129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5269, "upload_time": "2016-08-06T04:07:39", "url": "https://files.pythonhosted.org/packages/c3/d1/fee8e7e0cc3cd376c7684ca7bce7d420fa997c6b77a795115a07316daaa3/bluemix-service-discovery-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c860ac1cd61d18d18544fd7b95344129", "sha256": "62db6924cbe2e32571a8e546bc543f4162fd9570db46e1b22bdc05468b76e97e" }, "downloads": -1, "filename": "bluemix-service-discovery-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c860ac1cd61d18d18544fd7b95344129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5269, "upload_time": "2016-08-06T04:07:39", "url": "https://files.pythonhosted.org/packages/c3/d1/fee8e7e0cc3cd376c7684ca7bce7d420fa997c6b77a795115a07316daaa3/bluemix-service-discovery-0.0.1.tar.gz" } ] }