Client for Argo Workflows
Project description
Argo Workflows Client
Python client for Argo Workflows
Installation
pip install argo-workflows
Usage
If you're familiar with Kubernetes client, the Argo client follows the same behaviour.
from argo.workflows.client import V1alpha1Api
from argo.workflows.config import load_kube_config
load_kube_config() # loads local configuration from ~/.kube/config
And to list Workflows from a namespace (say argo
):
v1alpha1 = V1alpha1Api()
wfs = v1alpha1.list_namespaced_workflows(namespace="argo")
Versioning
The client is generated from the Argo and Kubernetes OpenAPI specification.
We follow semantic versioning, the client starts at version 1.0
which matches Argo release 2.3.0
and continues onwards.
Compatibility matrix
Argo 2.3 | Argo 2.4 | |
---|---|---|
client-python 1.0 | ✓ | - |
client-python 2.0 | + | ✓ |
Key:
✓
Exactly the same features / API objects in both client-python and the Kubernetes version.+
client-python has features or api objects that may not be present in the Kubernetes cluster, but everything they have in common will work.-
The Kubernetes cluster has features the client-python library can't use (additional API objects, etc).
We try to be consistent with Argo as much as possible and hence we created special branches for user convenience --- for example argo/v2.4.0 is identical with Argo release v2.4.0.
These can be then installed directly from github:
pip install -e "git+git://github.com/CermakM/argo-client-python@argo/v2.4.0#egg=argo-workflows"
:warning: The compatibility for such cases is not guaranteed
Code generation
If you wish to generate code yourself, you can do so by running make generate
with the ARGO_VERSION
environment variable being set to the you want to generate the client for.
Before
in the Makefile:
- make sure to select a compatible
KUBERNETES_BRANCH
according to Argo's Gopkg.toml - make sure to select a compatible version of kubernetes-client
- update requirements.txt and Pipfile
For additional configuration check out the Makefile.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file argo-workflows-1.2.0.tar.gz
.
File metadata
- Download URL: argo-workflows-1.2.0.tar.gz
- Upload date:
- Size: 74.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c86aaafe4fab1b6418b0cb03c07f4e79fd13898436a3a3cdeca22c7b255a37a |
|
MD5 | 283355c353e4660b18462a90ed5ef1ca |
|
BLAKE2b-256 | 3b846cadee760f945b83a4d4f9e425e3fc2140cca741c6d3172f4fba6d32622a |
File details
Details for the file argo_workflows-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: argo_workflows-1.2.0-py3-none-any.whl
- Upload date:
- Size: 101.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca45f44b02c2dcf28bcfaae0b64ccf50a019dc751f6c8a8247fe31c0d732d96c |
|
MD5 | 2b422e897831298a8d779759e56c0d58 |
|
BLAKE2b-256 | 0bc012f15962e3b0f587d303238d9fce631b7bb86cf6feca6b721eee95c4f36b |