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.2.20010521

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.2.20010521
File Size Uploaded Provenance
grpc_route-0.1.2.20010521.tar.gz 16.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 39.5 kB

Release files / grpc_route-0.1.2.20010521.tar.gz

Download URL grpc_route-0.1.2.20010521.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37611f8f5feb2a25b0f418146c051178478eb78243a22fff63913948efce963f
BLAKE2b-256 checksum
How to use checksums
b90edc65775bc67313a60d57b167fbaa637f451c69d2313cc39e48390c601864
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.2.20010521-py3-none-any.whl

Download URL grpc_route-0.1.2.20010521-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
417f1023e61db82dcba46ad6f4b7f42a59bbbd78e380d45f35fbf48d0361fcc2
BLAKE2b-256 checksum
How to use checksums
5838d20e4c0cf9d83e27840fd10beb194b3f09a58432a58c2a79efa6d613035e
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.2.20010521

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