Commit Graph

28 Commits

Author SHA1 Message Date
Chen Sun 07d6c1816b
feat(SDK)!: SDK client v2beta1 API integration. Fixes #8706 (#9112)
* SDK client v2beta1 API integration.

* fix unit tests

* create alias for use of methods and fields referencing `job`.`

* fix cli

* fix pipeline list-versions

* more cli fixes

* client fix
2023-04-12 09:54:45 -07:00
Connor McCarthy 13736b85b6
chore(sdk): clean up kfp code style (#8027)
* remove unused imports

* use google as isort profile

* sort imports

* format with yapf

* clean end of file new line, trailing whitespace, double quoted strings
2022-07-15 00:06:34 +00:00
Connor McCarthy b0db428165
feat(sdk)!: make CLI output consistent, readable, and usable (#7739)
* fix cli upload pipeline version

* organize requirements.in

* generate requirements.txt

* add pip-tools to requirements-dev

* improve CLI output

* update release notes
2022-05-20 00:03:23 +00:00
Connor McCarthy 18f0842ee0
fix(sdk): some cli fixes (#7668)
* use correct type when option is path

* fix options on create recurring-run

* make output logging more consistent

* show deprecation warning for dsl-compile on invocation

* fix unarchive experiment

* fix broken f-string

* convert camelcase methods to snake case
2022-05-05 12:47:18 -06:00
Connor McCarthy 652ec3b936
feat(sdk): rename CLI methods to 'create' (#7607)
* add deprecated alias group

* add deprecated alias group tests

* implement deprecated alias group

* clean up other alias tests

* clean up docstring

* fix type annotations / mypy

* format with yapf
2022-04-29 18:52:58 +00:00
Connor McCarthy ec0081372a
feat(sdk): improve cli help text (#7618)
* add docstring parsing utils

* implement docstring parsing for help text

* implement smoke test of all cli commands

* clean up use of optional in docstring

* make command descriptions more consistent

* fix disable_type_check

* update release notes
2022-04-29 17:20:57 +00:00
Connor McCarthy 027ac3274f
feat(sdk): add client methods to cli (#7606) 2022-04-27 13:21:13 -06:00
Connor McCarthy b58a31b307
chore(sdk): clean up v2 CLI (#7558)
* remove linting comments

* move global variable to local

* simplify diagnose_me command

* use f-strings

* idiomatic python refactorings

* remove unused import

* add typestub library

* silence unresolvable mypy error

* update type information

* remove unused variable

* remove unused import

* use __main__.py for cli entrypoint

* expand imports
2022-04-20 10:40:38 -06:00
Connor McCarthy d46fafe4ce
feat(sdk): port cli code from v1 to v2 (#7547)
* port cli

* fix docker mock
2022-04-13 20:19:52 +00:00
Yaqi Ji b693909a08
feat(sdk)!: move v1 to deprecated folder (#7291)
* chore(sdk): move v1 to deprecated

* fix testsg

* fix testsg

* fix setup.py

* fix test

* s'

* fix tests

* fix test

* retore v2 test changes

* fix py3.6 test

* fix py3.6 test

* fix py3.6 import fallback error

* remove deprecated

* fix samples test

* sample test

* fix samples

* add readme

* restroe test

* python require

* remove path

* fix tests

* inteegration tests

* remove tfx tests for dependency with kfp v1

* fix e2e

* fix e2e

* fix integration tests

* fix sampe

* move client down

* change to kfp

* add import alias

* fix

* runid

* fix dsl

* only use kfp for function

* revert train_until_good

* tfx test

* kfp

* try import

* onprem
2022-03-04 00:52:59 +00:00
Yuan (Bob) Gong bc7aad8b75
chore(sdk): fix error 'ApiResourceReference' object has no attribute 'id' (#6997)
* chore(sdk): fix error 'ApiResourceReference' object has no attribute 'id'

* fix more
2021-12-03 01:28:58 +00:00
Alex Latchford ddbfcde16f
feat(sdk): Improve CLI experience for archiving experiments, managing recurring runs and listing resources (#6934) 2021-12-01 18:07:13 +00:00
Chen Sun 2f19a26ffd
chore(sdk): Format all Python files under SDK folder. (#6501)
* Reformat sdk only using the new yapf config.

* Reformat docstrings using docformatter.

* update golden files to resolve diff caused by whitespaces

* fix some tests

* format .py files under sdk/python/tests using yapf

* additional docformatter

* fix some tests
2021-09-03 11:25:11 -07:00
Jaeyeon Kim 728915f4e4
feat(sdk): detail option to kfp run get. Fixes #6315 (#6404)
* [CLI]: add detail option to kfp run get command

- to get more detailed information

Signed-off-by: Jaeyeon Kim <anencore94@gmail.com>

* merge print_run_in_detail with _display_run

Signed-off-by: Jaeyeon Kim <anencore94@gmail.com>
2021-08-30 04:21:24 -07:00
Joe Liedtke ade34542e0
chore: Updates argoproj/argo URLs to argoproj/argo-workflows (#5969)
* Updt argoproj/argo URLs to argoproj/argo-workflows

* Update link to workflows.ts

* Update license.txt to reduce # of changed lines

* Revert changes to backend Dockerfile & license.txt

* Update license.txt, keep line endings
2021-07-06 21:52:20 -07:00
Jaeyeon Kim 069d5a7bda
feat(sdk): add timeout option to kfp run submit. Fixes #5806 (#5892)
Signed-off-by: Jaeyeon Kim <anencore94@gmail.com>
2021-06-23 14:13:19 -07:00
Yaqi Ji e7c281bd65
chore: Change python/kfp/compiler and cli folders from relative to absolute path (#5891)
* Update deprecated download_as_string to download_as_bytes

* Add more usage

* chore: Change python/kfp/cli from relative to absolute path

* chore: Change python/kfp/compiler from relative to absolute path
2021-06-22 11:28:31 -07:00
Niklas Hansson 929b56ffa3
update client to allow equal signs (#5650) 2021-05-16 00:44:44 -07:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Mansoor Baba Shaik 0a7da2d2db
feat(sdk): Replace logging and print statements with click echo statements for cli (#4622) 2021-01-14 08:41:04 -08:00
Mansoor Baba Shaik a8bd468265
feat(sdk): Fix print message for run submission with respect to output format (#4691) 2020-11-05 12:00:53 -08:00
Eugene Zapolsky 38946d88f8
feat(sdk): added pipeline name option to kfp run submit (#4535) 2020-11-03 04:54:15 -08:00
Mansoor Baba Shaik ce6cfa501d
feat(sdk): Adds missing short options to the cli (#4604) 2020-10-09 22:28:47 -07:00
Mansoor Baba Shaik 0795597562
feat(sdk): Support to print the cli command output in json format (#4566)
* Add support for json print format on command output

* Remove the additional log messages from cli command output
2020-10-01 12:13:19 -07:00
Eugene Zapolsky 37362a3441
fix(sdk): added clearer error for case when user uses watch and argo isn't installed (#4511) 2020-09-20 04:12:29 -07:00
Francis Laforge 40f06bfc91
feat: allow to use pipeline version (#3930) 2020-06-18 13:45:11 -07:00
Paul Selden 3713410022
[SDK/CLI] Add version param to run_pipeline (#3339)
* [SDK/CLI] Add version param to run_pipeline

* Set PIPELINE_VERSION relationship to CREATOR

Also adds a note about pipeline_id taking precedence over version_id
2020-04-06 08:21:48 -07:00
hongye-sun a39ae8eb77 KFP CLI (#1449)
* kfp CLI

* Add fire dependency

* Use click instead of fire

* Refactor the cli command groups.
2019-06-08 00:39:05 -07:00