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.2.tar.gz
(8.4 kB
view details)
Built Distribution
File details
Details for the file phisuite.schema-0.0.2.tar.gz
.
File metadata
- Download URL: phisuite.schema-0.0.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4ac54fc8ac2d28489203c5bcc35e32f034e2db5b8ecb8c2631e6c1d1d280b008
|
|
MD5 |
08f1537cc6aa200962cb17cd83e21ec9
|
|
BLAKE2b-256 |
a111cc81630dba14cf601ed5a31383c5ed20eff28d6b616ee96abe5318634b1d
|
File details
Details for the file phisuite.schema-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: phisuite.schema-0.0.2-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
922820da5a2928e7bc160aa7b94aa1b5acf7b6c64f20da7cf28e6cf366230aee
|
|
MD5 |
5d135599b44baaebbb7a8268641d1575
|
|
BLAKE2b-256 |
dd2a4e7c2250e0afbbaccf679e0ed40668354e09d227a27ee46c7bde7b2e039f
|