Skip to main content

requests bugmaker 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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requestbugmaker-0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

requestbugmaker-0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file requestbugmaker-0.1.tar.gz.

File metadata

  • Download URL: requestbugmaker-0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for requestbugmaker-0.1.tar.gz
Algorithm Hash digest
SHA256 4bfa406b0ad1578b65b51e7950f3e278ce337580ded132c8942a2ebe06b9ab67
MD5 7cb0cd3ff10ac900e97410fa0fc004cf
BLAKE2b-256 cebac1dd0b36a5265b3f17ffc291ef83291e146a80df5594ca9829e0828f1943

See more details on using hashes here.

File details

Details for the file requestbugmaker-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for requestbugmaker-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8135f49643d0e517aa5cb560b1f6863f9a1cd9b47feb671f7c7e00275d9154
MD5 77587c221a85c3434e90ed9736663135
BLAKE2b-256 ddd84bbe196a1f064084a6263b9d8dc14c937bad32439cd1ad8092244232ba79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page