Skip to main content

A grpc client for Flask.

Usage

init

channel_wrapper = ChannelWrapper(
    target="gaea-partner-python-grpc-dev-cuwmnyhgmq-uc.a.run.app:443",
    secure=True,
    credentials=grpc.ssl_channel_credentials(),
)
channel_wrapper.init_app(app)

health_stub = StubWrapper(health_pb2_grpc.HealthStub, channel_wrapper)

views

@app.route("/grpc")
def grpc_api():
    reply = health_stub.Check(health_pb2.HealthCheckRequest())
    return f"grpc response: {reply}"

Metadata

Release files for flask-grpc 0.1.1

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

Source distribution (sdist)

Source distribution for flask-grpc 0.1.1
File Size Uploaded
flask-grpc-0.1.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-grpc 0.1.1
File Interpreter ABI Platform
flask_grpc-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / flask-grpc-0.1.1.tar.gz

Download URL flask-grpc-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
776b22a6173521473cc43bb4d2478b480346f0dbec4018792c959b4daf60ed6a
BLAKE2b-256 checksum
How to use checksums
760acce8a050b0ed44dc54cc0bc8f3f9292a1434699b4547e151cc556c7abfe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.10 Linux/5.11.0-43-generic

Release files / flask_grpc-0.1.1-py3-none-any.whl

Download URL flask_grpc-0.1.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
155708a924cd0b146c2305edd85b6cff4e88993179995537aaec209e2f4384fc
BLAKE2b-256 checksum
How to use checksums
044bd65676fcd63edcc1ae5aee9b244b54e24300cd16d0978889d040d86cd09e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.8.10 Linux/5.11.0-43-generic

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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