Hkube Python Api
Project description
HKUBE local python api
api implementation for running and debbuging hkubes 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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989a891dd00a8efffa623e349cb740a8f557269a21162801f19535f8a7f29fc2 |
|
MD5 | 399406e7a784f86e469fe5cd97918ad1 |
|
BLAKE2b-256 | 0008a01f2d2ae83d6b447df151caebb0c098d2ec743e8bdae78f4853cf525051 |
Close
Hashes for hkube.debbuging_python_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25ef397a170023e62c34ec503de5a5b8e7b4c3e83a76a230ef032160ec8683b8 |
|
MD5 | a0d38f20f7158ac45a3a13f27168e1bd |
|
BLAKE2b-256 | a14254e50ed9d577118b32f47171e54301bf0739acd83915bfad8b6840af805d |