Skip to content

hyperf/roc-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperf 多路复用 RPC 组件 Python 版本

pypi Release Release

如何使用

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())

About

多路复用RPC组件 Python 版本

Resources

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages