Metadata-Version: 2.1
Name: hkube.debbuging-python-api
Version: 0.0.4
Summary: Hkube Python Api
Home-page: https://github.com/kube-HPC/hkube.debbuging-python-api
Author: Maty Zisserman
Author-email: hkube.dev@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: Events (>=0.3)
Requires-Dist: websocket-client (==0.53.0)
Requires-Dist: simplejson

# HKUBE local python api

api implementation for running and debugging Hkube`s pipeline without installing Hkube

## prerequisite

- install hkubectl

```bash
# Check release page for latest version
os = "linux/macos/windows"
curl -Lo hkubectl https://github.com/kube-HPC/hkubectl/releases/latest/download/hkubectl-{linux/macos/windows} \
&& chmod +x hkubectl \
&& sudo mv hkubectl /usr/local/bin/

```

- run `pip install hkube.debbuging-python-api`

## usage

```python
import asyncio
from hkube_debbuging_python_api.builder import Builder


def test1(data):
    print(data['input'])
    return data['input']


class runBuilder():

  async def run():
        build = Builder()
        pipe = await build.createPipeline("test")
        pipe.algorithm("test").input(5).add(test1).algorithm(
            'test2').input("@test").input(8).add(test1).algorithm("test5").input("@test2").add(test2).flowInput().input({"david": 5}).add().execute()




bla = asyncio.run(runBuilder.run())
print('finish')

```


