Commit Graph

30 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 101d243f48
feat(sdk): validate pipeline resource name before submission (#7713)
* add pipeline resource name validation

* add pipeline name validation tests

* update downstream pipeline name logic in cli
2022-05-13 20:12:41 +00:00
Connor McCarthy 49cdb42c12
fix cli upload pipeline version (#7722) 2022-05-13 12:13:25 -06: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
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
ByungchanKim 421211087c
fix(cli): handle when pipeline.paramters is None (#5725)
Signed-off-by: ByungchanKim <kbc8894@gmail.com>
2021-05-29 17:16:01 -07:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Jongseob Jeon 66f410d1d0
chore (sdk) typo err in cli/pipeline suppy -> supply (#5297) 2021-03-15 11:59:14 -07: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
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 dd1e3d8b76
feat(sdk): Added optional argument to specify description for pipeline upload (#4577) 2020-10-07 04:30:50 -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
Niklas Hansson aae1eba096
feat(sdk): CLI - Allow upload_version by the pipeline's name. Fixes #3901 (#4087)
* Update _client.py

* Allow for passing name instead of only pipeline_id

* fixed old rebase issue

* protobuf fix

* raise error and remove f-string

* moved file

* updated python proto packages versions

* Update sdk/python/kfp/_client.py

* restructured and added to build

* changes structure of import

* Updated the files

* further updates of client and filter.proto

* alternative

* clean up

* clean up

* remove helperfiles

* futher clean up

* clean up or eaither name or id

* update doc strings

* remove page_size

* Update sdk/python/kfp/_client.py

Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>

* Update sdk/python/kfp/cli/pipeline.py

Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>

* updated to classical string formattin

Co-authored-by: Jiaxiao Zheng <jxzheng@google.com>
2020-07-08 03:37:10 -07:00
Francis Laforge c9f621ad0c
feat: add kpf pipeline list-versions command (#3928) 2020-06-17 13:48:04 -07:00
Shotaro Kohama 5b62596bf4
Make it possible to upload a version of the pipeline with CLI (#3672)
* Add upload_pipeline_version to kfp.Client

* Add the 'kfp pipeline upload_version' command to CLI

* Make sure to use upload_pipeline_version wihtout a helper func

* Make sure of the google coding style with yapf

* Fix up the pipeline id option

* Make the version and id options to the required options
2020-05-06 17:27:08 -07:00
Alexey Volkov ed3a3037b8
SDK - CLI - Fixed incompatibility with Python 3.5 (#3567) 2020-04-22 12:49:44 -07:00
sh-tatsuno 64fd0ced17
SDK/CLI: Implement CLI delete pipeline command (#2879)
* feat: add delete pipeline command

* fix: docstring
2020-03-09 04:47:34 -07:00
Ilias Katsakioris 3b1fc66b9d SDK/CLI: Implement kfp pipeline group (#2340)
* kfp pipeline upload
* kfp pipeline get
* kfp pipeline list
* Use logging [Set logging level to INFO]
* Catch exceptions raised in command calls and log them as errors
* Add comment for TODO kfp pipeline delete

Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com>
2019-10-18 19:09:36 -07:00