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
Installation
Load balancing on the client side, service discovery
### Example config = ApplicationConfig(‘test_rpclib’) service_interface = ‘com.ofpay.demo.api.UserProvider’ #Contains a connection to zookeeper, which needs caching. registry = ZookeeperRegistry(‘192.168.59.103:2181’, config) user_provider = DubboClient(service_interface, registry, version=’1.0’) for i in range(1000): try: 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 as client_error: print(client_error) time.sleep(5)
TODO
### Licenses Apache License ### Thanks Thank @jingpeicomp for being a Guinea pig. It has been running normally for several months in the production environment. Thank you!
Metadata
Release files for dubbo-python3 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dubbo-python3-1.0.3.tar.gz | 790.3 kB | Without provenance | Details for dubbo-python3-1.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dubbo_python3-1.0.3-py3.6.egg | Legacy Egg format | - | - | Details for dubbo_python3-1.0.3-py3.6.egg |
| dubbo_python3-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for dubbo_python3-1.0.3-py3-none-any.whl |
Total release size: 863.2 kB
Release files / dubbo-python3-1.0.3.tar.gz
| Download URL | dubbo-python3-1.0.3.tar.gz |
|---|---|
| Size | 790.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
404f5e36b5b28f8a6d624b059d1cfde89d756f989b1f1bfd15f0adc5248e5c3d
|
|
BLAKE2b-256 checksum How to use checksums |
66e2d9c7b89e37a783249fb787b79427bce268cef63fbb21f5e021f9907fb2d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Release files / dubbo_python3-1.0.3-py3.6.egg
| Download URL | dubbo_python3-1.0.3-py3.6.egg |
|---|---|
| Size | 46.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
1f9c73a1711031a03d17c664333457e691e3928198eaf25861bca65a05a48f03
|
|
BLAKE2b-256 checksum How to use checksums |
726f93d72258a34ceb7ee4c4b82d9a20b456031f5f982cf8f0259bd32d26c09b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Release files / dubbo_python3-1.0.3-py3-none-any.whl
| Download URL | dubbo_python3-1.0.3-py3-none-any.whl |
|---|---|
| Size | 26.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e7bcceffebf846de0c0c7153327b77f124c7a3328eb7d13a4737fccdffbc5e2
|
|
BLAKE2b-256 checksum How to use checksums |
fbf8c530a1add8a8d1d2edb7f526f6208b14f8aa478503200404812fdcdff95d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Security for dubbo-python3 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.