V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
melonux
V2EX  ›  Python

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

  •  
  •   melonux · 2019-03-07 13:58:32 +08:00 · 3777 次点击
    这是一个创建于 1848 天前的主题,其中的信息可能已经有所发展或是发生改变。
    要传输层都给实现了的那种,我看 btc eth 都有自己的 json rpc。如果没有,我还是老老实实用 xmlrpc 得了。
    第 1 条附言  ·  2019-03-07 18:36:13 +08:00
    我看了好几种,最终选择了 flask_jsonrpc
    10 条回复    2019-03-10 08:53:19 +08:00
    Outliver0
        1
    Outliver0  
       2019-03-07 14:10:51 +08:00
    json-rpc 是 python 的这个包吗
    janxin
        2
    janxin  
       2019-03-07 14:29:51 +08:00
    thrift/gRPC 了解一下?
    melonux
        3
    melonux  
    OP
       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
        4
    melonux  
    OP
       2019-03-07 14:42:24 +08:00
    @janxin 知道这个。这种带 schema 的 rpc 在我的常用中不太合适,因为结构会时不时的变化。老要生成新的 protobuf 定义。
    a852695
        5
    a852695  
       2019-03-07 14:43:34 +08:00
    关注一波~~~同样在找这样的 rpc
    BlvPs
        6
    BlvPs  
       2019-03-07 15:55:05 +08:00
    同楼上, 最近在寻找合适的 python rpc 框架
    GreatTony
        7
    GreatTony  
       2019-03-07 16:21:37 +08:00
    melonux
        8
    melonux  
    OP
       2019-03-07 18:35:44 +08:00
    @GreatTony 谢谢
    CEBBCAT
        9
    CEBBCAT  
       2019-03-07 19:55:34 +08:00 via Android
    找到方案后还回过头来补充的,少见了
    a226679594
        10
    a226679594  
       2019-03-10 08:53:19 +08:00
    thrift/gRPC
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3208 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:34 · PVG 19:34 · LAX 04:34 · JFK 07:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.