Phi Suite Data
Project description
Phi Suite Data.py
Homepage | https://phisuite.com |
---|---|
GitHub | https://github.com/phisuite |
Overview
This project contains the Python module to create the Data API server & client.
For more details, see Phi Suite Data.
Installation
pip install phisuite.data
Creating the server
from phisuite import data
class EventAPIServicer(data.EventAPIServicer):
def Publish(self, request, context):
...
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
data.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 data
channel = grpc.insecure_channel('localhost:50051')
stub = data.EventAPIStub(channel)
event = stub.Publish(event)
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.data-0.0.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for phisuite.data-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dde6c119fe81ac246ee00dc1ace905cfbd2da6e2aacecae1774fa43afef628c |
|
MD5 | 51a54b934a491bca05450987fc256785 |
|
BLAKE2b-256 | 2e609bc27a5c9913c62fc5fe75d2e927c19a273d3545f2db1d47e89d11216f9b |