Skip to main content

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


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.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phisuite.data-0.0.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file phisuite.data-0.0.2.tar.gz.

File metadata

  • Download URL: phisuite.data-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 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

Hashes for phisuite.data-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6e0f6c7bf85253ce89f0716bd6a4ec0476aee7a3d60a7625d1649691561fc51d
MD5 42d4c4aa4b9cd7ce5091a88a1192be9d
BLAKE2b-256 ed5ac61ae1d82d6e500a9d4c75a88e2df1bc262c374b8188333974c2f91f6021

See more details on using hashes here.

File details

Details for the file phisuite.data-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: phisuite.data-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 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

Hashes for phisuite.data-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1c3f1400cf590e580a78cf2af5df47ad8798b456a552d518a77481dcd506b9
MD5 f621b2f611038e3b73a3d7581c9a396a
BLAKE2b-256 fdc5796eb15f82079ef216be1d0fa2a67e8a9e3b9def6fdf8957dadc041632c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page