grpc_requests:python grpc reflaction客户端

时间:2021-05-08 14:57:45
【文件属性】:
文件名称:grpc_requests:python grpc reflaction客户端
文件大小:36KB
文件格式:ZIP
更新时间:2021-05-08 14:57:45
python client reflection pypi stub grpc要求 人类的GRPC from grpc_requests import Client client = Client . get_by_endpoint ( "localhost:50051" ) assert client . service_names == [ "helloworld.Greeter" ] request_data = { "name" : 'sinsky' } result = client . request ( "helloworld.Greeter" , "SayHello" , request_data ) print ( result ) # {"message":"Hellow sinsky"} 特征 使用反射或存根连接服务器 不需要存根类请求grpc(如果需要) 支持所有一元和流方法 支持tls和压缩连接 支持AsyncIO API 安
【文件预览】:
grpc_requests-master
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----tests.sh(79B)
----src()
--------grpc_requests()
--------__init__.py(0B)
--------tests()
----requirements-dev.txt(129B)
----requirements.txt(77B)
----LICENSE(11KB)
----setup.cfg(1KB)
----setup.py(374B)
----README.md(7KB)
----.gitignore(12KB)

网友评论