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):
        gen_response(request, error_code, response) 
        
    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.10.tar.gz (3.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.10-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.10.tar.gz
  • Upload date:
  • Size: 3.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.10.tar.gz
Algorithm Hash digest
SHA256 c045cbd07f6e8abf6635c0d0c99acec5ab0ca2fa5b80c4d006014d3ac7d33961
MD5 2dbf6241f896fa70ba3452e3215ac12e
BLAKE2b-256 9620e029be70c4a950a77bb677b8b9bbf349c7dd5f356cdbea5c83c9e0a688ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b9791079b4f83b3a6ee46acaf9d02d52d9f59816201d2375ccd588af2704a4bb
MD5 8050bb3badeb957ad554535daad60983
BLAKE2b-256 eaaffd19a24163b82d29e771571a0c10d2438f7380c6a60d7e6806d72894e51d

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