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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hybrid_compute_sdk-0.2.11.tar.gz.
File metadata
- Download URL: hybrid_compute_sdk-0.2.11.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7693f9db086415d9d58f1f64299bf3ca22fdade726c2fca68d767337b402e590
|
|
| MD5 |
f3acdd05a5afa433add72e3ad50d5e4c
|
|
| BLAKE2b-256 |
ce2c67aeb79a26aa5265d749301b04ed5c0ebacb644e1be9a2cae94efb47da4c
|
File details
Details for the file hybrid_compute_sdk-0.2.11-py3-none-any.whl.
File metadata
- Download URL: hybrid_compute_sdk-0.2.11-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca38c9d43880915f3cd77b02df8be7ce6744866e04b951b1ea4f720177db5452
|
|
| MD5 |
c228c4ab3c9b6764ef99441bf2cbcf2a
|
|
| BLAKE2b-256 |
08926f8befd9cb9a1581a643546a8e7556e958f01ff842cb97731442509c50ef
|