Metadata-Version: 2.1
Name: hybrid_compute_sdk
Version: 0.1.2
Summary: A Python SDK for creating JSON-RPC servers with hybrid compute capabilities
Home-page: https://github.com/bobanetwork/aa-hc-sdk
Author: Boba
Author-email: 
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# README.md
# Hybrid Compute SDK

A Python SDK for creating JSON-RPC servers with hybrid compute capabilities.

## Installation

```
pip install hybrid_compute_sdk
```

## Usage

```python
from hybrid_compute_sdk import HybridComputeSDK

TEST_PORT = 8080

sdk = HybridComputeSDK()
server = sdk.create_json_rpc_server_instance()

@server.add_server_action("testAction")
def test_action():
    return {"state": "running", "name": "another_action", "valid": True}

@server.add_server_action("anotherAction")
def another_action():
    return {"state": "running", "name": "another_action", "valid": True}

@server.add_server_action("andAnotherAction")
def and_another_action():
    return {"state": "paused", "name": "and_another_action", "valid": True}

server.listen_at(TEST_PORT)
```

