推荐学习书目
› 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 · Mar 7, 2019 · 5221 views
    This topic created in 2798 days ago, the information mentioned may be changed or developed.
    要传输层都给实现了的那种,我看 btc eth 都有自己的 json rpc。如果没有,我还是老老实实用 xmlrpc 得了。
    Supplement 1  ·  Mar 7, 2019
    我看了好几种,最终选择了 flask_jsonrpc
    10 replies  •  2019-03-10 08:53:19 +08:00
    Outliver0
    Outliver0
    Mar 7, 2019
    1
    json-rpc 是 python 的这个包吗
    janxin
    janxin
    Mar 7, 2019
    2
    thrift/gRPC 了解一下?
    melonux
    melonux
    OP
    Mar 7, 2019
    3
    @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
    melonux
    OP
    Mar 7, 2019
    4
    @janxin 知道这个。这种带 schema 的 rpc 在我的常用中不太合适,因为结构会时不时的变化。老要生成新的 protobuf 定义。
    a852695
    a852695
    Mar 7, 2019
    5
    关注一波~~~同样在找这样的 rpc
    BlvPs
    BlvPs
    Mar 7, 2019
    6
    同楼上, 最近在寻找合适的 python rpc 框架
    GreatTony
    GreatTony
    Mar 7, 2019
    7
    melonux
    melonux
    OP
    Mar 7, 2019
    8
    @GreatTony 谢谢
    CEBBCAT
    CEBBCAT
    Mar 7, 2019 via Android
    9
    找到方案后还回过头来补充的,少见了
    a226679594
    a226679594
    Mar 10, 2019
    10
    thrift/gRPC
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 13:17 · PVG 21:17 · LAX 05:17 · JFK 08:17
    ♥ Do have faith in what you're doing.