依赖pyhessian,bitstring
示例代码
from dubbo import DubboConsumer
def print_hi(consumer):
req = consumer.queryCusStatis([("Lcom/weimob/o2o/wecom/data/api/interfaces/query/request/CusStatisRequest;",
{"corpid": 1, "dateRangeType": 3})])
print(f'req: {req!r}')
for dto in req.responseVo.data.cusStatisDayDtos:
print(f'dto: {dto!r}')
if __name__ == '__main__':
consumer = DubboConsumer("10.11.32.251:2181", "com.weimob.o2o.wecom.data.api.interfaces.query.QueryCusApi")
print_hi(consumer)
具体参照测main.py,目前支持常用的dubbo协议。
Metadata
Release files for duConsumer 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| duConsumer-0.0.4.tar.gz | 1.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| duConsumer-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.6 kB
Release files / duConsumer-0.0.4.tar.gz
| Download URL | duConsumer-0.0.4.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d6ceb9cb1218267d5b7af08a60b3fdd6f8b11e3621614e901c6278ee3b92d40
|
|
BLAKE2b-256 checksum How to use checksums |
2c17cab46c1d5df92e303bf501dce6ba494f992f35335a6edc3d860a776804d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / duConsumer-0.0.4-py3-none-any.whl
| Download URL | duConsumer-0.0.4-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ecd0e2b068deb991df42cf551457f5babfe1b0e3143fa6e0ba2c234dc40258a
|
|
BLAKE2b-256 checksum How to use checksums |
fd9e54366f89b769d8afcd20cfd343385f94c0cf0634231a644b83eae29ab36c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|