Skip to main content

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/latest/download/hkubectl-{linux/macos/windows} \
&& chmod +x hkubectl \
&& sudo mv hkubectl /usr/local/bin/
  • run pip install hkube.debbuging-python-api

usage

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')

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

hkube.debbuging-python-api-0.0.5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

hkube.debbuging_python_api-0.0.5-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hkube.debbuging-python-api-0.0.5.tar.gz.

File metadata

File hashes

Hashes for hkube.debbuging-python-api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 726eb75e96ee83417819f57deaa4215f679f44023ae71c07fcde705e5a76f191
MD5 47f7f2b80ffb987e7e389434a8ec27b8
BLAKE2b-256 b844541782b7f532b677918786c2f78d462b9f3a593adca0f0192cf92974afee

See more details on using hashes here.

File details

Details for the file hkube.debbuging_python_api-0.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for hkube.debbuging_python_api-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1f013ec90aea1f46907368a3a8796d5c3b9d234104af28faef0408a7ab58b27d
MD5 dd121534e6ee4ee4a32bb2981842e4b1
BLAKE2b-256 928aff5a5cee41f619f12969d9422e2d31d7ff000d3f0b09e129369710800d94

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page