Skip to main content

Telnet command test dubbo

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

airbugmaker-0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

airbugmaker-0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for airbugmaker-0.1.tar.gz
Algorithm Hash digest
SHA256 794990bd906eb0d884b37b48efd86959badae226130f50bebe0f241bb18c3dc4
MD5 e5adf3c0580e3df25d4dfba5eb916fc6
BLAKE2b-256 0fa1701c93b0c3befc5f27a89dfafb987423900196e60454bf924cd1c3fa6c67

See more details on using hashes here.

File details

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

File metadata

  • Download URL: airbugmaker-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for airbugmaker-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1be5950eee34f5b090c6b8e3fa0917aa3eae3c34204e1a4e39922961c96e0ef0
MD5 fed67e175fa4426736b83beefb748070
BLAKE2b-256 ad5c1b15dfe0f70bbc8c547f31ae692d5177ae55ee983e90e98f0526c5625e3c

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