Hyperf 多路复用 RPC 组件 Python 版本
Project description
Hyperf 多路复用 RPC 组件 Python 版本
如何使用
import asyncio
from roc.request import Request
from roc.socket import Client
async def main():
client = Client(host="127.0.0.1", port=9502)
while True:
req = Request(path="/test/test",
params={"mobile": "123123", "data": "HelloWorld"})
res = await client.request(req)
print(res.result)
await asyncio.sleep(1)
if __name__ == '__main__':
asyncio.run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
roc_py-0.2.1.tar.gz
(4.4 kB
view details)
File details
Details for the file roc_py-0.2.1.tar.gz.
File metadata
- Download URL: roc_py-0.2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd769305d5d5e827070120230349cdcaf66309af328a3718a9d013068df5e87a
|
|
| MD5 |
88204849083d5d2160aa00342dcf5a57
|
|
| BLAKE2b-256 |
824c9cad56cda9613a92fbc19b1580f3b4adfc2709b75040574e86b846c5a134
|