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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.3.tar.gz
  • Upload date:
  • Size: 3.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.2.3.tar.gz
Algorithm Hash digest
SHA256 71f055c1365d9aac2525627e514405f9aab79fe7cd91852c7206a09a0613c753
MD5 99a9f026998d475b2eafaa7678ce7c8c
BLAKE2b-256 2f52475a620929282cc7fe31b900526857b4a8e83060177de11553a789721618

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa59da6e622722f011b4b392fe9589765afc5ab1b8daba0855b07991802dd3cc
MD5 e45bbf049f389d57f16a4b391cbc8df1
BLAKE2b-256 a83c8c611e3a06d354cc909bdb8ef08f1dae202597bcffb4fdf75c0833524b28

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