Hkube Python Api
Project description
HKUBE local python api
api implementation for running and debugging Hkube`s pipeline without installing Hkube
prerequisite
- install hkubectl
# Check release page for latest version
os = "linux/macos/windows"
curl -Lo hkubectl https://github.com/kube-HPC/hkubectl/releases/download/$(curl -s https://api.github.com/repos/kube-HPC/hkubectl/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')/hkubectl-{linux/macos/windows} \
&& chmod +x hkubectl \
&& sudo mv hkubectl /usr/local/bin/
- run
hkubectl dry-run start
usage
import asyncio
from lib.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").add(test1).execute()
bla = asyncio.run(runBuilder.run())
print('finish')
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
Built Distribution
Close
Hashes for hkube.debbuging-python-api-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a562bab7c73c24d3e1953cc74ad965fcd417cc81045c349e88fa0fb33fa1f9a2 |
|
MD5 | d4a5d4230cfb994f0f6f7e44d223b025 |
|
BLAKE2b-256 | 2e3551ac110d0af93a52e35f2c3b663cc7cd748cf10d41fe683754064b4b8d29 |
Close
Hashes for hkube.debbuging_python_api-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32b1c1149b2e59d3e4fce5f5ab2742ab929ede44a5ff231f41e8f62d65f37e9 |
|
MD5 | f0a5dd24c307ee98a5ef8f2abc03c15c |
|
BLAKE2b-256 | 32006c7bf2be3327197aca663d0c987b0522b74dadb730babf72b285dc736d89 |