Skip to main content

A Python SDK for creating JSON-RPC servers with hybrid compute capabilities

Project description

README.md

Hybrid Compute SDK

A Python SDK for creating JSON-RPC servers with hybrid compute capabilities.

Installation

pip install hybrid_compute_sdk

Usage

from hybrid_compute_sdk import HybridComputeSDK

TEST_PORT = 8080

sdk = HybridComputeSDK()
server = sdk.create_json_rpc_server_instance()

@server.add_server_action("testAction")
def test_action():
    return {"state": "running", "name": "another_action", "valid": True}

@server.add_server_action("anotherAction")
def another_action():
    return {"state": "running", "name": "another_action", "valid": True}

@server.add_server_action("andAnotherAction")
def and_another_action():
    return {"state": "paused", "name": "and_another_action", "valid": True}

server.listen_at(TEST_PORT)

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

hybrid_compute_sdk-0.1.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

hybrid_compute_sdk-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file hybrid_compute_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: hybrid_compute_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for hybrid_compute_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a2a3992f4ecc647388b5a27ead32ee5864db294d4d67193d02722a0be1776783
MD5 243bd660d6fc545cd960a8b8d9acc70c
BLAKE2b-256 33888643fb2e1c6539827e1d8192db43a852adfaaf53ca0ea79e7516b59e06db

See more details on using hashes here.

File details

Details for the file hybrid_compute_sdk-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad04ebbcf7e7756eb492fdaf51ae35754b4ab306c27c23bb032d1456d722481
MD5 13db64e8788cbd31a8a2d2c4bb3b01b0
BLAKE2b-256 fccd0f51df12577771431d4b624b4f5c06c4b9b31657d19e1e37ff276bbb34ac

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