Skip to main content

Re-usable kfp components for hoodat

Project description

Hoodat Pipeline Components

Code style: black

This repository provides an SDK and a set of components that perform tasks in hoodat.

It is modelled after this repository of shared components for GCP: https://github.com/kubeflow/pipelines/tree/google-cloud-pipeline-components-1.0.1/components/google-cloud

To create new release of package and push to pypi:

  1. Update the version with commitizen:
# cz bump --dry-run
cz bump
  1. Push to main branch
git push
  1. Create a new release in github.

The package will be built and pushed to pypi in a github action.

## Makefile

There is a Makefile at the root of this project which provides some useful functionality for developing and publishing components. In the next sections of this document some of this funcitonality will be described.

Important to the use of the Makefile is the creation of an env.sh file with necessary arguments populated. See env.sh.example for an example of what this file should look like. Copy it to env.sh and replace the default arguments with your own.

To create a new component with your own Dockerfile

New components should be added to the hoodat_vertex_components/components subdirectory. See already existing examples. Here is a common file structure for a component:

├── make_cascade_file
│   ├── Dockerfile
│   ├── cascades.csv
│   ├── component.yaml
│   ├── make_cascade_file.py
│   ├── poetry.lock
│   ├── pyproject.toml
│   └── tests
│       └── test_filter_cascades.py

To run a components docker container in interactive mode

This function will be useful for running a components docker image interactively. Update the env.sh with the name of the component and run:

make run_interactive

To run a pipeline with a single component in it

It may be useful to test a component in a pipeline. To do this, update the env.sh with the name of the component and run:

make push_and_pipeline

To create a new python component

Look at video_to_frames for an example.

Once you're happy, run:

COMPONENT_NAME=video_to_frames
cd hoodat_vertex_components/components/$COMPONENT_NAME
poetry run python component.py

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

hoodat_vertex_components-1.6.1.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

hoodat_vertex_components-1.6.1-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file hoodat_vertex_components-1.6.1.tar.gz.

File metadata

  • Download URL: hoodat_vertex_components-1.6.1.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure

File hashes

Hashes for hoodat_vertex_components-1.6.1.tar.gz
Algorithm Hash digest
SHA256 9fc355d6cc0d668140afa9bd2089920cca8132970718f025c11c2cffee75ca3d
MD5 ed9e217f9f71b2c882192dca8e2b4c23
BLAKE2b-256 d8b50c9b3667725b8a3e7e37ddcfa8251ab34a7c6249575005b4e9859cba9cfc

See more details on using hashes here.

File details

Details for the file hoodat_vertex_components-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hoodat_vertex_components-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f678a676b95b6c4466ed583ee8b8e456be9063c3957385f751535e4bf59952
MD5 1fcfa9b84dea104cb25ba72750c48f4a
BLAKE2b-256 d7d7b724d9b8b98db6c27bc100a17a35b33b3016e9e2584c81e80c5c0375f147

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