推荐学习书目
› 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 · 5072 views
    This topic created in 2759 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
        1
    Outliver0  
       Mar 7, 2019
    json-rpc 是 python 的这个包吗
    janxin
        2
    janxin  
       Mar 7, 2019
    thrift/gRPC 了解一下?
    melonux
        3
    melonux  
    OP
       Mar 7, 2019
    @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
       Mar 7, 2019
    @janxin 知道这个。这种带 schema 的 rpc 在我的常用中不太合适,因为结构会时不时的变化。老要生成新的 protobuf 定义。
    a852695
        5
    a852695  
       Mar 7, 2019
    关注一波~~~同样在找这样的 rpc
    BlvPs
        6
    BlvPs  
       Mar 7, 2019
    同楼上, 最近在寻找合适的 python rpc 框架
    GreatTony
        7
    GreatTony  
       Mar 7, 2019
    melonux
        8
    melonux  
    OP
       Mar 7, 2019
    @GreatTony 谢谢
    CEBBCAT
        9
    CEBBCAT  
       Mar 7, 2019 via Android
    找到方案后还回过头来补充的,少见了
    a226679594
        10
    a226679594  
       Mar 10, 2019
    thrift/gRPC
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   908 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:25 · PVG 03:25 · LAX 12:25 · JFK 15:25
    ♥ Do have faith in what you're doing.