Skip to main content

一、安装(python版本建议3.7以上)

pip install dubborequests

二、升级包

pip install --upgrade dubborequests

三、示例

获取dubbo服务详情

# 导入
import dubborequests
# 获取dubbo服务详情
data = dubborequests.search('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService')

获取服务下的所有方法

# 导入
import dubborequests
# 获取dubbo服务下的所有方法
data = dubborequests.list('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService')
# 获取dubbo服务指定的方法
data = dubborequests.list('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService', 'login')

通过zookeeper获取服务的ip和端口, Telnet命令测试dubbo接口

import dubborequests
from dubborequests import Config
# 先配置zookeeper中心地址
Config.zookeeper_url_list = ['192.168.240.15:2181', '192.168.240.15:2182', '192.168.240.15:2183']
invoke_data = {
    "service_name": "cn.com.xxxxx.sso.ehr.api.dubbo.SsoEmpInfoService",
    "method_name": "login",
    "data": {
        "account": "xxxx",
        "password": "xxxx"
    }
}
# 通过zookeeper获取服务的ip和端口, Telnet命令测试dubbo接口
data = dubborequests.zk_invoke(*invoke_data)

Telnet命令测试dubbo接口

import dubborequests
invoke_data = {
    "ip": 'xxxx',
    "port": 7777,
    "service_name": "cn.com.xxxxx.sso.ehr.api.dubbo.SsoEmpInfoService",
    "method_name": "login",
    "data": {
        "account": "xxxx",
        "password": "xxxx"
    }
}
 # Telnet命令测试dubbo接口
data = dubborequests.telnet_invoke(*invoke_data)

Metadata

Release files for testteaplatfrom 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testteaplatfrom 0.1
File Size Uploaded Provenance Actions
testteaplatfrom-0.1.tar.gz 2.7 kB Without provenance Details for testteaplatfrom-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for testteaplatfrom 0.1
File Interpreter ABI Platform Actions
testteaplatfrom-0.1-py3-none-any.whl Python 3 none any Details for testteaplatfrom-0.1-py3-none-any.whl

Total release size: 5.3 kB

Release files / testteaplatfrom-0.1.tar.gz

Download URL testteaplatfrom-0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
90cd5c955722bdd4f13e9e7cc48ceccb7464f1e2a1db7bff27c92d7c75af4eac
BLAKE2b-256 checksum
How to use checksums
cbe595b65c0b723e38f2cf5007d133c912915549705f6cc2c8d492c202321b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.10

Release files / testteaplatfrom-0.1-py3-none-any.whl

Download URL testteaplatfrom-0.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9438ac0cf42987e56b37ebc24f304e24db0c7718e6b67c268f3a45d60fa6d1bf
BLAKE2b-256 checksum
How to use checksums
3df31d4779e3f32ca8aa88b406d1ad6de46dff239e8baf1e9f5d4f233c9ef7fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.10

Security for testteaplatfrom 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page