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.2.tar.gz (2.2 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.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 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.2.tar.gz
Algorithm Hash digest
SHA256 dcdd5b17d441c2c66ed5d21784e22849c7ab06f42c21fb7bdc42949d853245c6
MD5 81c0893873080c94599cd76a4eca962f
BLAKE2b-256 1c7ed3e7b9337935d18b9b9636e0893f916308ff7675dfcd8cf246d6a9326ca9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f120ed0a1445c567013396a223bd27b644b7883afec03c7f7bd00d940f78edfd
MD5 996a1fc899433f8edf74a5f86b8d949f
BLAKE2b-256 f5d63c89e4ef10ba65bb9f4175f528cc77ec7d5528f9cb95825c1cd6f0f31500

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