Skip to main content

A Metaflow plugin to execute flows on Argo Workflows

Project description

Metaflow library for SAP AI Core

This Python library is a plugin that lets you generate workflow templates that can be executed in Argo or on SAP AI Core.

Sap-ai-core-metaflow is a Metaflow plugin to execute flows on Argo Workflows.

It adds Argo Workflows capabilities on top of Metaflow's @kubernetes decorator similar to step-functions and @batch.

Installation

pip install sap-ai-core-metaflow\[kubernetes\]

Documentation

For general information about how to use Metaflow, see the Metaflow documentation https://docs.metaflow.org.

For command-line help, use the command option --help

Configuration

The plugin requires configured Metaflow:

metaflow configure eks

Usage

To see a sub-commands' detailed information, run::

python 00-helloworld/helloworld.py argo [sub-command] --help

An example creating an argo workflow from the Metaflow hello world tutorial.

metaflow tutorials pull
cd metaflow-tutorials

python 00-helloworld/helloworld.py argo create
python 00-helloworld/helloworld.py argo trigger
python 00-helloworld/helloworld.py argo list-runs

Generate Argo Workflows Template

To store a generated template in a file, run the command:

python 00-helloworld/helloworld.py --with=kubernetes:secrets=default-object-store-secret argo create --only-json > helloworld.json

Note

Argo Workflows accepts both YAML and JSON templates. The Argo plugin always creates JSON.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sap_ai_core_metaflow-1.1.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file sap_ai_core_metaflow-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: sap_ai_core_metaflow-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.2 requests/2.25.1 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.5.3

File hashes

Hashes for sap_ai_core_metaflow-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c84f0e9534dbef29730335b528228585052678f2a04cdcecfd6f0e7749f00de
MD5 6a76c833c60a039dc48c27931bdd3cdc
BLAKE2b-256 83bf80bc87432480a370b44f4de3140df510f3a12e8291ef4554c976e32c75b0

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