Commit Graph

22 Commits

Author SHA1 Message Date
Connor McCarthy e47a784035
docs(sdk): clean up kfp v2 cli reference docs (#8115)
* use expanded "Command Line Interface" for title

* remove alpha feature stage in help text

* hide deprecated argument

* use compile as command name
2022-08-09 18:40:39 +00: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 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 e12ac39ba4
feat(sdk): use dsl noun group for compile CLI commands (#7603)
* use kfp dsl compile for compilation commands

* create and move tests
2022-04-26 15:05:31 -06:00
Connor McCarthy fbfeadd4a4
feat(sdk): add autocomplete and version options to kfp cli (#7567)
* add helpful options to cli

* add tests
2022-04-25 14:01:02 -06:00
Connor McCarthy e077d01cf9
feat(sdk): add noun aliasing to cli (#7569)
* allow both singular and plural versions of nouns

* use command table for client creation

* cleanup

* simplify docker mock

* add docker to test requirements; clean up existing requirements
2022-04-25 12:24:57 -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
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
Ajay Gopinathan fe663772c8
feat(sdk): Enable containerizing v2 Python components (#6417)
* Refactor and move all v2 related code to under the v2 namespace.

Most of the changes are around imports and restructuring of the
codebase. While it looks like a lot of code was added, most of the code
already existed and was simply moved or copied over to v2. The only
exceptions are:
- under kfp/v2/components/component_factory.py: some helper functions
  were copied with simplification from _python_op.py
- we no longer strip the `_path` suffix in v2 components.

Note: there is still some duplication of code (particularly between
component_factory.py and _python_op.py), but it's ok for now since we
intend to replace some of this with v2 ComponentSpec + BaseComponent.

* Update setup.py.

* update tests.

* revert accidental change of gcpc

* Fix component entrypoint.

* Update goldens.

* fix tests.

* fix merge conflict.

* revert gcpc change.

* fix tests.

* fix tests.

* Add type aliases for moved files.

* merge and update goldens.

* Add a CLI command to help containerize and build v2 components.

* Flesh out the CLI for Docker.

* update comments.

* Support multiple component files in the same directory.

* address pr comments.

* Let user specify just the directory containing components.

The CLI will search for components in all Python files by default. It
can also search for a specific filepattern (as supported by
pathlib.Path objects).

Also add a bunch of tests.

* Clean up.

* fix merge error.

* Fix docker import error for tests.

* Update release notes.

* address PR comments.
2021-10-12 09:33:44 -07: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
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
Jiaxiao Zheng fb15223f7e
chore: Add doc strings marking the feature stages for SDK. (#4575)
* add doc strings

* Simplify the docstring

* fix unittest

* recover cli.py

* recover cli.py

* substitute docstring in resource ops with TODOs

* revert stable labels
2020-11-24 00:19:00 -08: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
Shotaro Kohama 291f5b3d7a
Add the 'kfp experiment' commands (#3705)
* Add the 'kfp experiment list' command

* Add the 'kfp experiment get' command

* Add the 'kfp experiment create' command

* Add the 'kfp experiment delete' command

* Add a caution to 'kfp experiment delete'

* Use directly the backend api method to list experiments

* Update a message based on the suggestion

https://github.com/kubeflow/pipelines/pull/3705#discussion_r424751792
2020-05-20 15:22:19 -07:00
Ning c74a9d8cd2 Add support for user account auth with IAP (#2626)
* Add support for user account auth with IAP

* add comments

* add the url in case open_new_tab does not work(AI Platform notebook).

* code refactor: move get_auth_token logic in auth.py

* store the credentials locally

* minior fix

* add support in kfp cli

* fix diagnose me bug

* add reference

* add todo for refresh token expiration

* address comments
2019-11-22 15:26:42 -08:00
sina chavoshi f2516b72ef Adding diagnose_me to CLI tool (#2543) 2019-11-05 18:29:01 -08: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
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