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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.4.tar.gz
  • Upload date:
  • Size: 3.3 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.4.tar.gz
Algorithm Hash digest
SHA256 377ab0ee63a61948ff9b761ad36c64080a32f585a2c3e8d981b5c3635b7eb3ef
MD5 7e57a290c7d8db563eeef6036e8f9713
BLAKE2b-256 c97b51bbad0376271a3708f7321b1fc2019baade0b7da1c340bbe7011d6959d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 70bf17739b9c6e19d183f526e1e12cea9fea2a4b9e90dc9a405a1c5c3cd3a95b
MD5 a0412865ecfb7093af1bea25aa843596
BLAKE2b-256 a8994aa8170c35ce29cdebb2b5e59950d3933eba93fb44bc766de08fbd604a42

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