-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]Bento managements with Yatai service #1126
Conversation
Hello @yubozhao, Thanks for updating this PR. There are currently no PEP 8 issues detected in this PR. Cheers! 🍻 Comment last updated at 2020-11-12 06:38:17 UTC |
Codecov Report
@@ Coverage Diff @@
## master #1126 +/- ##
==========================================
+ Coverage 65.55% 65.93% +0.37%
==========================================
Files 141 141
Lines 9059 9116 +57
==========================================
+ Hits 5939 6011 +72
+ Misses 3120 3105 -15
Continue to review full report at Codecov.
|
2502051
to
82b1435
Compare
bentoml/saved_bundle/loader.py
Outdated
@@ -232,7 +231,7 @@ def safe_retrieve(bundle_path, target_dir): | |||
return | |||
|
|||
|
|||
def load(bundle_path): | |||
def load_from_bundle_path(bundle_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about make the bundler
API consistent like this?
save_to_dir
load_from_dir
docs/source/api/bentoml.rst
Outdated
@@ -62,10 +62,6 @@ ver | |||
+++ | |||
.. autofunction:: bentoml.ver | |||
|
|||
save |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep this? I don't think it's necessary to introduce this breaking change here.
"load", | ||
"save", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's just keep save
here?
* Add yatai push and pull * fix typo * add bento service management * rename loader.load to loader.load_from_bundle * move save method to bento service management * update * format/lint * update * skipping mac ox ci, due to lack of docker * update * Update __init__.py * format * Renaming load_from_dir and keep track in the old location * move service management to yatai client repository * rebase to latest master * uncomment pytest skip on mac * formatting * update doc * Add yatai client to doc API reference * use the correct method name * formatting * Update test_pip_install_saved_bundle.py * Update test_pip_install_saved_bundle.py * update cli message and pin urllib3 * formatting * add back 'save' * formatting
Description
Add bento management for Yatai service
Python APIs:
Check out the yatai repository API reference at https://docs.bentoml.org/en/latest/api/yatai_client.html
push
pull
delete
prune
get
list_bentos
CLI changes:
bentoml push
Add
--yatai-url
option for the following commandsbentoml get
bentoml list
bentoml delete
bentoml retrieve
bentoml run
bentoml serve
bentoml serve-gunicorn
bentoml info
bentoml open-api-spec
Motivation and Context
How Has This Been Tested?
Types of changes
Component(s) if applicable
Checklist:
./dev/format.sh
and./dev/lint.sh
script have passed(instructions).