Metadata-Version: 2.1
Name: hkube.debbuging-python-api
Version: 0.0.4
Summary: Hkube Python Api
Home-page: https://github.com/kube-HPC/hkube.debbuging-python-api
Author: Maty Zisserman
Author-email: hkube.dev@gmail.com
License: MIT
Description: # HKUBE local python api
        
        api implementation for running and debugging Hkube`s pipeline without installing Hkube
        
        ## prerequisite
        
        - install hkubectl
        
        ```bash
        # 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
        
        ```python
        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')
        
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
