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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hybrid_compute_sdk-0.2.12.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.12.tar.gz
Algorithm Hash digest
SHA256 bd1680d446a28cebe836967d926af4960a38f5610115d7fece7df38d4e2a4c5b
MD5 81b6169b46aa2c59feed1e6c6f7e1c57
BLAKE2b-256 b737d7a3a3e9e0d539b47ad1a628ebb1753b17e42b1faf2f93a6671ac7032c6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hybrid_compute_sdk-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2b61fbd8ed4eab058667b347fb2de79d36637fd09a4124ec523e97266fa23a5c
MD5 dac7fa461daa951276e67e221b3c3647
BLAKE2b-256 0e2f09c234b752eec541d8155485b11fb8bb0930a8717f92eccd393ae11057f8

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