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.2.1.tar.gz (3.6 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.2.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 3.6 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.2.1.tar.gz
Algorithm Hash digest
SHA256 a563b71870ded76d352c1f8e7055065a7d7d13c2253f99d8b8067eefd9a5e093
MD5 2dec57a8bb940be26787750be713932a
BLAKE2b-256 a35b6db9b6e4b04a82c685677686b37c06a5b1f302e7032848bda7ecbacdd4b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b76ba3ac9a5689a282b177ab5530fedc69c5019d922d9b1c76f79d8c01a68082
MD5 b367d3bd384dc931be72e29615d3693f
BLAKE2b-256 1aa54008cd51431efb33c7f65e7173d1bbd594ef71451619ca994750c248f8f1

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