Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

⚠️⚠️⚠️This repository is no longer maintained, please find your Java SDKshttps://github.com/argoproj/argo-workflows/blob/master/docs/client-libraries.md⚠️⚠️⚠️

License

NotificationsYou must be signed in to change notification settings

argoproj-labs/argo-client-python

Repository files navigation

⚠️⚠️⚠️This repository is no longer maintained, please find your Java SDKshttps://github.com/argoproj/argo-workflows/blob/master/docs/client-libraries.md⚠️⚠️⚠️

Argo Workflows Python Client

Python client for Argo Workflows

Argo Version: 2.12.2

Installation

pip install argo-workflows

Examples

A quick start example with one of the example workflow

importyamlimportrequestsfromargo.workflows.clientimport (ApiClient,WorkflowServiceApi,Configuration,V1alpha1WorkflowCreateRequest)# assume we ran `kubectl -n argo port-forward deployment/argo-server 2746:2746`config=Configuration(host="http://localhost:2746")client=ApiClient(configuration=config)service=WorkflowServiceApi(api_client=client)WORKFLOW='https://raw.githubusercontent.com/argoproj/argo/v2.12.2/examples/dag-diamond-steps.yaml'resp=requests.get(WORKFLOW)manifest:dict=yaml.safe_load(resp.text)service.create_workflow('argo',V1alpha1WorkflowCreateRequest(workflow=manifest))

Documentation for API Endpoints

All URIs are relative tohttp://localhost

ClassMethodHTTP requestDescription
ArchivedWorkflowServiceApideleteArchivedWorkflowDELETE /api/v1/archived-workflows/{uid}
ArchivedWorkflowServiceApigetArchivedWorkflowGET /api/v1/archived-workflows/{uid}
ArchivedWorkflowServiceApilistArchivedWorkflowsGET /api/v1/archived-workflows
ClusterWorkflowTemplateServiceApicreateClusterWorkflowTemplatePOST /api/v1/cluster-workflow-templates
ClusterWorkflowTemplateServiceApideleteClusterWorkflowTemplateDELETE /api/v1/cluster-workflow-templates/{name}
ClusterWorkflowTemplateServiceApigetClusterWorkflowTemplateGET /api/v1/cluster-workflow-templates/{name}
ClusterWorkflowTemplateServiceApilintClusterWorkflowTemplatePOST /api/v1/cluster-workflow-templates/lint
ClusterWorkflowTemplateServiceApilistClusterWorkflowTemplatesGET /api/v1/cluster-workflow-templates
ClusterWorkflowTemplateServiceApiupdateClusterWorkflowTemplatePUT /api/v1/cluster-workflow-templates/{name}
CronWorkflowServiceApicreateCronWorkflowPOST /api/v1/cron-workflows/{namespace}
CronWorkflowServiceApideleteCronWorkflowDELETE /api/v1/cron-workflows/{namespace}/{name}
CronWorkflowServiceApigetCronWorkflowGET /api/v1/cron-workflows/{namespace}/{name}
CronWorkflowServiceApilintCronWorkflowPOST /api/v1/cron-workflows/{namespace}/lint
CronWorkflowServiceApilistCronWorkflowsGET /api/v1/cron-workflows/{namespace}
CronWorkflowServiceApiupdateCronWorkflowPUT /api/v1/cron-workflows/{namespace}/{name}
EventServiceApireceiveEventPOST /api/v1/events/{namespace}/{discriminator}
InfoServiceApigetInfoGET /api/v1/info
InfoServiceApigetUserInfoGET /api/v1/userinfo
InfoServiceApigetVersionGET /api/v1/version
WorkflowServiceApicreateWorkflowPOST /api/v1/workflows/{namespace}
WorkflowServiceApideleteWorkflowDELETE /api/v1/workflows/{namespace}/{name}
WorkflowServiceApigetWorkflowGET /api/v1/workflows/{namespace}/{name}
WorkflowServiceApilintWorkflowPOST /api/v1/workflows/{namespace}/lint
WorkflowServiceApilistWorkflowsGET /api/v1/workflows/{namespace}
WorkflowServiceApipodLogsGET /api/v1/workflows/{namespace}/{name}/{podName}/log
WorkflowServiceApiresubmitWorkflowPUT /api/v1/workflows/{namespace}/{name}/resubmit
WorkflowServiceApiresumeWorkflowPUT /api/v1/workflows/{namespace}/{name}/resume
WorkflowServiceApiretryWorkflowPUT /api/v1/workflows/{namespace}/{name}/retry
WorkflowServiceApisetWorkflowPUT /api/v1/workflows/{namespace}/{name}/set
WorkflowServiceApistopWorkflowPUT /api/v1/workflows/{namespace}/{name}/stop
WorkflowServiceApisubmitWorkflowPOST /api/v1/workflows/{namespace}/submit
WorkflowServiceApisuspendWorkflowPUT /api/v1/workflows/{namespace}/{name}/suspend
WorkflowServiceApiterminateWorkflowPUT /api/v1/workflows/{namespace}/{name}/terminate
WorkflowServiceApiwatchEventsGET /api/v1/stream/events/{namespace}
WorkflowServiceApiwatchWorkflowsGET /api/v1/workflow-events/{namespace}
WorkflowTemplateServiceApicreateWorkflowTemplatePOST /api/v1/workflow-templates/{namespace}
WorkflowTemplateServiceApideleteWorkflowTemplateDELETE /api/v1/workflow-templates/{namespace}/{name}
WorkflowTemplateServiceApigetWorkflowTemplateGET /api/v1/workflow-templates/{namespace}/{name}
WorkflowTemplateServiceApilintWorkflowTemplatePOST /api/v1/workflow-templates/{namespace}/lint
WorkflowTemplateServiceApilistWorkflowTemplatesGET /api/v1/workflow-templates/{namespace}
WorkflowTemplateServiceApiupdateWorkflowTemplatePUT /api/v1/workflow-templates/{namespace}/{name}

Documentation for Models

Code generation

The generated SDK will correspond to the argo version specified in theARGO_VERSION file.

If you wish to generate code yourself, you can do so by reproducing the build environment (image):make builder_image, then runningmake builder_make to generate the client.

About

⚠️⚠️⚠️This repository is no longer maintained, please find your Java SDKshttps://github.com/argoproj/argo-workflows/blob/master/docs/client-libraries.md⚠️⚠️⚠️

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp