Metadata-Version: 1.2
Name: python-discovery-client
Version: 0.4
Summary: python client for discovery a registry for resilient mid-tier load balancing and failover. https://github.com/bilibili/discovery
Home-page: https://github.com/tomwei7/discovery-client
Author: tomwei7
Author-email: tomwei7g@gmail.com
License: MIT
Description: # discovery-client
        
        [![CircleCI](https://circleci.com/gh/tomwei7/discovery-client.svg?style=svg)](https://circleci.com/gh/tomwei7/discovery-client)
        [![PyPI version](https://badge.fury.io/py/python-discovery-client.svg)](https://badge.fury.io/py/python-discovery-client)
        
        python client for discovery https://github.com/bilibili/discovery only support python3.
        
        ### Install
        
        ```bash
        pip install python-discovery-client
        ```
        
        ### Usage
        
        ```python
        from discovery import config_from_env, Client
        
        
        # register instance
        client = Client(config_from_env('127.0.0.1:7771')) # use you discovery domain
        client.register('your app name', ['http://127.0.0.1:8000'])
        
        # watch instance
        def watch_callback(instances):
            print('instance change: %s', instances)
        
        client.watch('your app name', watch_callback)
        
        client.stop()
        ```
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
