Skip to main content

Phi Suite Schema

Project description

Phi Suite



This project contains the Python module to create the Schema API server & client.
For more details, see Phi Suite Schema.


pip install phisuite.schema

Creating the server

from phisuite import schema

class EventAPIServicer(schema.EventAPIServicer):
    def Get(self, request, context):

server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
schema.add_EventAPIServicer_to_server(EventAPIServicer(), server)

For more details, see gRPC Basics - Python: Creating the server.

Creating the client

from phisuite import schema

channel = grpc.insecure_channel('localhost:50051')

stub = schema.EventAPIStub(channel)
event = stub.Get(options)

For more details, see gRPC Basics - Python: Creating the client.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for phisuite.schema, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size phisuite.schema-0.0.2.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View
Filename, size phisuite.schema-0.0.2-py3-none-any.whl (25.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page