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.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: hkube.debbuging-python-api-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e573272e7b7e9ece8e626437ce086f3ee6aa452e5ecc071593af3a0e15acf0eb
MD5 87664c9dfdb4dcf2ec27031542661ca7
BLAKE2b-256 6993cf1ab93579da3b8960c5a461e20dea7cfc903cd647eb964e96cc210beec7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hkube.debbuging_python_api-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba4ac9070426b98bf1ff9670037a37c3e5d68c277dbe74c743a995a9df91d61
MD5 d0bd4c364a94973307c487e34a3ba6f6
BLAKE2b-256 79ec71a728265e97dae424a12fa2272689ee47c0c3e4ab0b9b015a8d45540baa

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