Skip to main content

grpc_route

Documentation

The documentation is hosted at https://github.com/BingerYang/grpc_route

Installation

pip install grpc_route

Usage

server run:

from grpc_route.server import Router

app = Router()


@app.route("index")
def test(n):
    # n / 0
    print("-> to index: ", n)
    return "server back ->"


if __name__ == "__main__":
    app.run_forever("0.0.0.0", port=5656)

client run:

from grpc_route.client import RouteClient
from grpc_route import AddrConf

addr1 = AddrConf("127.0.0.1", 5656)
app = RouteClient(addr1)
app.connect()


@app.register(handler="index", to_addr=addr1)
def run_index(n):
    pass

Metadata

Release files for grpc-route 0.1.1.20010315

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grpc-route 0.1.1.20010315
File Size Uploaded Provenance
grpc_route-0.1.1.20010315.tar.gz 14.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for grpc-route 0.1.1.20010315
File Interpreter ABI Platform
grpc_route-0.1.1.20010315-py3-none-any.whl Python 3 none any Details

Total release size: 32.8 kB

Release files / grpc_route-0.1.1.20010315.tar.gz

Download URL grpc_route-0.1.1.20010315.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3d8cd6f4b51a4173a8d2e071c1a01bb213b47364133ba789d7dc28f48560cd2f
BLAKE2b-256 checksum
How to use checksums
100c4aa6cd7ac94e975d79626ce4e814868aacb5338a8d94b169486f271d96ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.4

Release files / grpc_route-0.1.1.20010315-py3-none-any.whl

Download URL grpc_route-0.1.1.20010315-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a70d87c74b3c892828176db35526b8496d182fcd67b595e30b386abc277a134
BLAKE2b-256 checksum
How to use checksums
fb23ce6266f1cbb7763b20593e30f289135e78e7513a16602b97536810e5cb26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.4

Security for grpc-route 0.1.1.20010315

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page