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.4.tar.gz (1.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.1.4-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 1.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.1.4.tar.gz
Algorithm Hash digest
SHA256 c52a8724b0054ca12b3d893c505e36c5cd30cf0f2842643fe77d3724af251429
MD5 c1e21374252dfb82c074b8e9c190099b
BLAKE2b-256 7eedb8c52361330dafcc679cc5a753a62fb91a87812ef65de0f4df0b274bbf0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 95d33c6c9adbfdd128c98b8761427387826fdcb7364251a0913d41f43c9c0752
MD5 aa6f81debeab971fad74c9d4161ff2d0
BLAKE2b-256 c84ebe13e1795ce26175cb222c4d349e3c96d3d9b0aebf80b10b25b426a669fc

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