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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.8.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.8.tar.gz
Algorithm Hash digest
SHA256 2907c9156f759f6ffa9e514e8cdf75e2714bb34d379a6fd50ba0f1bc54db2d86
MD5 e80afb09d7285c2ae6d9666e9446ece8
BLAKE2b-256 356a98dae28f9113fb924945ab18748d79e25f0d86c4a28ef50e4e2f01c1e1af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3a46eba7678b5054a17321300e7210526f35f7af8b5454fe61c19835d057cc78
MD5 3e51bb435fd3f13c9ffb2f192a85a649
BLAKE2b-256 87ab78a55c0b5ca25363a569daf716612703d5daf9f0221577e0f02744a7dfd5

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