python通过nacos请求dubbo接口
1.安装第三方包:
dubbo-python
2.新建2个文件
DubboClientNew.py
NacosMethods.py
#!usr/bin/python
#-*- coding:utf-8 _*-
"""
@author:xiana
@file: NacosMethods.py
@time: 2021/12/31 2:43 下午
"""
import json
from dubbo.client import NacosRegister
from dubbo.common.constants import DUBBO_NC_PROVIDERS
from dubbo.common.exceptions import RegisterException
class NacosMethods(NacosRegister):
def get_methods_from_nacos(self, interface, version):
"""
从nacos中
共有 0 条评论