Metadata-Version: 2.1
Name: qb-consul
Version: 1.0.1
Summary: consul服务注册与获取
Home-page: http://www.qibao-tech.com
Author: Roy
Author-email: 1573277807@qq.com
License: UNKNOWN
Description: ## Introduce to qb-consul
        
        version: 1.0.0
        
        how to install:
        
        pip install qb-consul
        
        
        If you want to use it locally:
        ```
        from qb_consul import Consul
        
        
        host = "127.0.0.1"  # consul服务器的ip
        port = 8500  # consul服务器对外的端口
        consul_client = Consul(host, port)
        
        # register service
        name = "qbzz-server"
        host1 = "127.0.0.1"
        port1 = 8001
        service_id = "qbzz-server-%s" % port1
        consul_client.RegisterService(name, service_id, host1, port1)
        
        # get service
        message = consul_client.get_service('qbzz-server')
        host = message[0]
        port = message[1]
        
        
        
        ```
Platform: UNKNOWN
Description-Content-Type: text/markdown
