modal.Client

class Client(object)
def __init__(
    self,
    server_url,
    client_type,
    credentials,
    version=__version__,
    *,
    no_verify=False,
):

stub

@property
def stub(self):

verify

@classmethod
def verify(cls, server_url, credentials):

unauthenticated_client

@classmethod
def unauthenticated_client(cls, server_url: str):
    # Create a connection with no credentials
    # To be used with the token flow

start_token_flow

def start_token_flow(self) -> Tuple[str, str]:
    # Create token creation request
    # Send some strings identifying the computer (these are shown to the user for security reasons)

finish_token_flow

def finish_token_flow(self, token_flow_id) -> Tuple[str, str]:
    # Wait for token forever

from_env

@classmethod
def from_env(cls, _override_config=None) -> "_Client":

set_env_client

@classmethod
def set_env_client(cls, client):

Just used from tests.