Commit Graph

7 Commits

Author SHA1 Message Date
Connor McCarthy c6a5e387dd
docs(sdk): refresh SDK public API docstrings (#8057)
* add module-level docstrings

* update compiler docstrings

* update registry module docstrings

* add BaseComponent and children to public api, but discourage use

* update artifact docstrings and type annotations

* update dsl docstrings

* update client docstrings

* clean up kfp.__init__

* add dsl placeholder docstrings

* many more docstring updates

* document type aliases in dsl module
2022-07-21 19:51:18 +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
Christian Kadner aab7fda89b
feat(sdk): Add default registry context (#7948)
* Add default registry context

Signed-off-by: Christian Kadner <ckadner@us.ibm.com>

* Address review comments

* Reinstate `_is_ar_host()` check
* Remove `view=FULL` flag for default list and get
  version URLs

Signed-off-by: Christian Kadner <ckadner@us.ibm.com>

* Change outdated test name

Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
2022-06-30 13:51:05 -06:00
chongyouquan 58f7ab8b49
chore(sdk): Registry Client - default to read full spec of versions (#7936)
* default to read full spec of versions

* update tests

* fix formatting
2022-06-24 09:43:51 -06:00
chongyouquan 4f01b7e602
feat(kfp): implement config file support for registry client (#7908)
* implement config file support

* update tests

* update PR in response to comments
2022-06-21 15:54:09 -06:00
chongyouquan eaa8ec7807
fix(sdk): Fix corner cases and implement validation (#7763)
* Handle corner case when list is empty

* add validation for tags and versions

* add tests for empty lists

* add tests for version and tag validation

* fix formatting and optional arguments

* fix type annotation
2022-05-23 17:47:02 +00:00
chongyouquan 25e4c58820
feat(sdk): Implement Registry client (#7597)
* Implement registry client

* Update registry client code

* Add test skeleton

* Add some tests

* Update code

* add tests

* update tests

* update tests

* Rename Client -> RegistryClient

* Update wrt comments

* add type annotations

* fix renaming in __init__.py

* remove unused imports

* extract host variable in test

* format using yapf

* remove locals and use arg keywords

* remove json conversion

* fix header

* write bytes when downloading file

* fix create_tag; fix tests

* fix request_body for update_tag and create_tag using json.dumps

* simply return json for delete_tag

* rename files

* format files

* update return types and format double quotes

* add comments and format files

* add todos

* update credentials and change open to use context

* format using yapf

* move request into context

* Update comments

* Update release notes

* Update release notes
2022-05-10 06:53:06 +00:00