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.2.tar.gz
(4.6 kB
view details)
File details
Details for the file roc_py-0.2.2.tar.gz.
File metadata
- Download URL: roc_py-0.2.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bad3f6e168e4f61d3fefa9f6f407cc6c1b5eae5ff1c976771eb8667e77bf56a
|
|
| MD5 |
f5ca7499c583c9aad6c59b1eddc1e203
|
|
| BLAKE2b-256 |
3794f2904870131d53d7f45d66f92867a8a13097385412e66008ad159fc6ed73
|