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/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

hkube.debbuging-python-api-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distributions

hkube.debbuging_python_api-0.0.4-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.4.tar.gz.

File metadata

  • Download URL: hkube.debbuging-python-api-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for hkube.debbuging-python-api-0.0.4.tar.gz
Algorithm Hash digest
SHA256 df924a7c05c542adb5f8cb6dac12d55a5ad2921b085b0e893d930d0c90561eb1
MD5 08d413b09d1a37d60c34a99ceac0c2ec
BLAKE2b-256 45b84eb92706e1ea471cea99d8132354758959cc8e6099326669546169012ad3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hkube.debbuging_python_api-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for hkube.debbuging_python_api-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c724d7040d549b27649f04de29e2fda5e61e56020145fded3820dafde4b83a
MD5 7f22019c3ea1d9a83bfc7cb8ef064822
BLAKE2b-256 b05192d08223cf240ddb0b02b50320d5dae051e0c340d8ade42b27145c2428e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hkube.debbuging_python_api-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5fa5b1193fa6dbc60a77f0c10bee20fef2cc1e0c88b77d4e50b74ad956ed811b
MD5 e69dbb1342df48438e88d03ec29769b2
BLAKE2b-256 c7647495b8ec039df801c8b7213d5e51f78c501dfcd3732484ff3d5eaad7da35

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