Phi Suite Schema
Project description
Phi Suite Schema.py
Homepage | https://phisuite.com |
---|---|
GitHub | https://github.com/phisuite |
Overview
This project contains the Python module to create the Schema API server & client.
For more details, see Phi Suite Schema.
Installation
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)
server.add_insecure_port('[::]:50051')
server.start()
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phisuite.schema-0.0.0.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for phisuite.schema-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8886d88011aaadfa18bd5d2a3426a3ec24caf790ddcb8fccfab553a7d636df77 |
|
MD5 | d702f47993c7a83a3c9bfa96e20df7a8 |
|
BLAKE2b-256 | cd7dc1aa0b9e0d831621df4dbcd7db40baf1b1ce3d978feebb7528166ed59aa6 |