modal.Client
class Client(object)
from_credentials
@classmethod
def from_credentials(cls, token_id: str, token_secret: str) -> "_Client":
Constructor based on token credentials; useful for managing Modal on behalf of third-party users.
Usage:
client = modal.Client.from_credentials("my_token_id", "my_token_secret")
modal.Sandbox.create("echo", "hi", client=client)