rap:rap(par [::-1])是高级且快速的python async rpc-源码

上传者: 42101384 | 上传时间: 2021-02-27 21:03:46 | 文件大小: 81KB | 文件类型: ZIP
说唱 rap(par [::-1])是高级且快速的python异步rpc rap通过msgpack和Python asyncio以及多路复用conn实现了非常快速的通信,同时支持高并发性。 实施protobuf的Grpc通过Python函数和TypeHint。 注意:当前的rap API在后续版本中可能会发生重大变化 说唱第一版功能的想法来自 1.安装 pip install rap 2.快速入门 服务器 import asyncio from typing import AsyncIterator from rap . server import Server def sync_sum ( a : int , b : int ) -> int : return a + b async def async_sum ( a : int , b : int ) -> int :

文件下载

资源详情

[{"title":"( 91 个子文件 81KB ) rap:rap(par [::-1])是高级且快速的python async rpc-源码","children":[{"title":"rap-master","children":[{"title":"rap","children":[{"title":"client","children":[{"title":"processor","children":[{"title":"crypto.py <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 68B </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 262B </span>","children":null,"spread":false}],"spread":true},{"title":"core.py <span style='color:#111;'> 10.42KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"model.py <span style='color:#111;'> 893B </span>","children":null,"spread":false},{"title":"transport","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"channel.py <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"transport.py <span style='color:#111;'> 15.67KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"server","children":[{"title":"processor","children":[{"title":"crypto.py <span style='color:#111;'> 4.54KB </span>","children":null,"spread":false},{"title":"limit","children":[{"title":"rule.py <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"core.py <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"util.py <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"backend","children":[{"title":"redis.py <span style='color:#111;'> 5.96KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 290B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 911B </span>","children":null,"spread":false}],"spread":true},{"title":"core.py <span style='color:#111;'> 9.04KB </span>","children":null,"spread":false},{"title":"middleware","children":[{"title":"msg","children":[{"title":"access.py <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"conn","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"conn_limit.py <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"block.py <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"requests.py <span style='color:#111;'> 14.42KB </span>","children":null,"spread":false},{"title":"model.py <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"registry.py <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"response.py <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false}],"spread":true},{"title":"cli.py <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"common","children":[{"title":"crypto.py <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"types.py <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"middleware.py <span style='color:#111;'> 635B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"conn.py <span style='color:#111;'> 5.04KB </span>","children":null,"spread":false},{"title":"channel.py <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"utlis.py <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"exceptions.py <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"example","children":[{"title":"concurrent","children":[{"title":"server.py <span style='color:#111;'> 868B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"exc","children":[{"title":"server.py <span style='color:#111;'> 582B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1009B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"ssl","children":[{"title":"server.py <span style='color:#111;'> 721B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 743B </span>","children":null,"spread":false},{"title":"rap_ssl.crt <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"rap_ssl.key <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false}],"spread":true},{"title":"reload_module","children":[{"title":"server.py <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"test_module.py <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"session","children":[{"title":"server.py <span style='color:#111;'> 926B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"channel","children":[{"title":"server.py <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"register","children":[{"title":"server.py <span style='color:#111;'> 988B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"limit","children":[{"title":"server.py <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"middleware","children":[{"title":"server.py <span style='color:#111;'> 1023B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 941B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ping_pong_event","children":[{"title":"server.py <span style='color:#111;'> 477B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"starlette","children":[{"title":"server.py <span style='color:#111;'> 988B </span>","children":null,"spread":false},{"title":"app.py <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"secret","children":[{"title":"server.py <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 684B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"pyproject.toml <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"mypy.ini <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":"README_CH.md <span style='color:#111;'> 15.81KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 765B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 17.30KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明