Python Client For Apache Dubbo

Clone this repo:
  1. de1206f Create .asf.yaml by Huang YunKun · 2 years, 7 months ago master
  2. 0947552 Update by Ian Luo · 4 years, 1 month ago
  3. e745a6d Merge pull request #12 from zhaowei7146/readme by Ian Luo · 4 years, 6 months ago
  4. 9acfd06 The content is duplicated in the and needs to be deleted by zhaowei7146 · 4 years, 7 months ago
  5. 5ab6c6e Merge pull request #10 from Heluwe/baiji_team8_dubbo-client-py by ken.lj · 4 years, 9 months ago

Python Client For Apache Dubbo

Achieve load balancing on the client side、auto discovery service function with Zookeeper

Python calls the Dubbo interface's jsonrpc protocol

Please use dubbo-rpc-jsonrpc and configure protocol in Dubbo for jsonrpc protocol


Download code
python install
pip install
pip install dubbo-client==1.0.0b5 Git install
pip install git+
pip install git+

Load balancing on the client side, service discovery

Get the registration information of the service through the zookeeper of the registry.
Dubbo-client-py supports configuring multiple zookeeper service addresses. “host”:“,,”
Then the load balancing algorithm is implemented by proxy, and the server is called.
Support Version and Group settings.


    config = ApplicationConfig('test_rpclib')
    service_interface = 'com.ofpay.demo.api.UserProvider'
    #Contains a connection to zookeeper, which needs caching.
    registry = ZookeeperRegistry('', config)
    user_provider = DubboClient(service_interface, registry, version='1.0')
    for i in range(1000):
        print user_provider.getUser('A003')
        print user_provider.queryUser(
            {u'age': 18, u'time': 1428463514153, u'sex': u'MAN', u'id': u'A003', u'name': u'zhangsan'})
        print user_provider.queryAll()
        print user_provider.isLimit('MAN', 'Joe')
        print user_provider('getUser', 'A005')

    except DubboClientError, client_error:
        print client_error


Optimize performance, minimize the impact of service upper and lower lines.
Support Retry parameters
Support weight call
Unit test coverage


Apache License


Thank @jingpeicomp for being a Guinea pig. It has been running normally for several months in the production environment. Thank you!