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

Uploaded Python 3

File details

Details for the file hybrid-compute-sdk-0.2.0.tar.gz.

File metadata

  • Download URL: hybrid-compute-sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 4.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.2.0.tar.gz
Algorithm Hash digest
SHA256 08f4ee6c9cc5318ebb6eb54d4826ba0b4dc4301f343b157a4a61268f9adcd9ec
MD5 7fb143b3844a20d874f0c62423fe62e7
BLAKE2b-256 979ba59e40a8e41370626d5cadd639fd683ed35743d8333feafcae160275faba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbea151e27a92965f6bba38a44e027493dcc6913ec41312fd32fb6ed117f431c
MD5 84942275a59c2d1a52de773589ae0ef8
BLAKE2b-256 8b0b667c03e1ed6fb37793a49fe814bcfd46b8555ea5bd4fc06ff81a68a4e049

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