feature: Cloud Login without CLI
holzweber opened this issue · comments
Feature request
I want to be able to log in with python to my endpoint.
Example:
from bentoml.cloud import login
login(endpoint="abc.com", token="1234") # Update current context with the endpoint similar to CLI command
Motivation
So far I have only seend to login via the CLI command: https://docs.bentoml.org/en/latest/bentocloud/reference/bentocloud-cli.html#bentoml-cloud-login
Other
No response
Now we respect login credentials from env vars:
import os
os.environ.update(BENTO_CLOUD_API_KEY="...", BENTO_CLOUD_API_ENDPOINT="...")
Very nice! Thank you for the quick response! 💯