test tea drop platfrom
Project description
一、安装(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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dropteaplatfrom-0.1.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file dropteaplatfrom-0.1.tar.gz
.
File metadata
- Download URL: dropteaplatfrom-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35f6748f005eb0791a24a99d06ac918aa50be9bdb04a4bf1e274484a993be3f |
|
MD5 | 1c77f3a849ed5dfde7d1ff4603223bae |
|
BLAKE2b-256 | e9da669bf0626ffad871d54004bdbc0d7e428fddc63f6ada06142e4f1b275906 |
File details
Details for the file dropteaplatfrom-0.1-py3-none-any.whl
.
File metadata
- Download URL: dropteaplatfrom-0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf836aa65bb2423f48808f753fbcf8a3f777b4bf3d696136bdf24fe84a8de0a4 |
|
MD5 | 6afbb67e78b0f78ec2129b8f0d798a18 |
|
BLAKE2b-256 | 1b790070375f9ffff4f221171fb4229a9c0237d7848d27d53b96d70322039089 |