请问 Python 下有什么比较常用的 json-rpc 实现?

2019-03-07 13:58:32 +08:00
 melonux
要传输层都给实现了的那种,我看 btc eth 都有自己的 json rpc。如果没有,我还是老老实实用 xmlrpc 得了。
3824 次点击
所在节点    Python
10 条回复
Outliver0
2019-03-07 14:10:51 +08:00
json-rpc 是 python 的这个包吗
janxin
2019-03-07 14:29:51 +08:00
thrift/gRPC 了解一下?
melonux
2019-03-07 14:41:08 +08:00
@Outliver0 官方的是这个,但实现上似乎有些问题。
python-jsonrpc is the official JSON-RPC implementation for Python. It automatically generates Python methods for RPC calls. However, due to its design for supporting old versions of Python, it is also rather inefficient. jgarzik has forked it as Python-BitcoinRPC and optimized it for current versions. Generally, this version is recommended.
melonux
2019-03-07 14:42:24 +08:00
@janxin 知道这个。这种带 schema 的 rpc 在我的常用中不太合适,因为结构会时不时的变化。老要生成新的 protobuf 定义。
a852695
2019-03-07 14:43:34 +08:00
关注一波~~~同样在找这样的 rpc
BlvPs
2019-03-07 15:55:05 +08:00
同楼上, 最近在寻找合适的 python rpc 框架
GreatTony
2019-03-07 16:21:37 +08:00
melonux
2019-03-07 18:35:44 +08:00
@GreatTony 谢谢
CEBBCAT
2019-03-07 19:55:34 +08:00
找到方案后还回过头来补充的,少见了
a226679594
2019-03-10 08:53:19 +08:00
thrift/gRPC

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/542095

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX