Skip to main content

Hyperf 多路复用 RPC 组件 Python 版本

Project description

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

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.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file roc_py-0.2.0.tar.gz.

File metadata

  • Download URL: roc_py-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for roc_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e3a143bf18d092c609413f6fd5e3aa55d1104ca228ac548a4db926f22c0cf09e
MD5 9f4369b2e0c77336241223cf92ba9ae0
BLAKE2b-256 d2dc6aa27bf70515503b4d576051e67936b02ec56cc58cf2d6333e901eaf7c20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page