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

import asyncio
from hybrid_compute_sdk.server import HybridComputeSDK

async def main():
    sdk = HybridComputeSDK()
    server = sdk.create_json_rpc_server_instance()

    async def hybrid_action(params):
        return f"Received: {params}"

    server.add_server_action("test_action", hybrid_action)
    
    await server.listen_at(8080)

if __name__ == '__main__':
    asyncio.run(main())

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.2.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.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a1db36c693809dba4336fec41dba16e7dd4f3d9dfc3ff1b743f04b8994807370
MD5 7aac10c10e8cebed47323eab21e28d3d
BLAKE2b-256 16846fb6bb452e159e225c597559989b2287ec0e349aae78db7b6db8b2c8194e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 144de4578d1312830792694531132f1f89813a2c2335568dc20216f1bab6b8e4
MD5 d4f53e4af9c160c287bb0b677bce1c88
BLAKE2b-256 a66f96bf8213817acee4d68a71379c39037baa5946d2fb92085d3ff8e59fc4e9

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