Skip to main content

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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hkube.debbuging_python_api-0.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hkube.debbuging-python-api-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 989a891dd00a8efffa623e349cb740a8f557269a21162801f19535f8a7f29fc2
MD5 399406e7a784f86e469fe5cd97918ad1
BLAKE2b-256 0008a01f2d2ae83d6b447df151caebb0c098d2ec743e8bdae78f4853cf525051

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hkube.debbuging_python_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25ef397a170023e62c34ec503de5a5b8e7b4c3e83a76a230ef032160ec8683b8
MD5 a0d38f20f7158ac45a3a13f27168e1bd
BLAKE2b-256 a14254e50ed9d577118b32f47171e54301bf0739acd83915bfad8b6840af805d

See more details on using hashes here.

Supported by

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