Python SDK — Client

Client

Constructor
Client(
    api_token: str,
    api_private_token: str,
    base_url: str = "https://api.michitai.com/api",
    logger: Logger | None = None,
    timeout: float = 30.0,
    session: requests.Session | None = None,
)

Initializes the SDK with API tokens. Services are exposed as client.players, client.rooms, client.actions, client.updates, client.matchmaking, client.matchmaking_requests, client.leaderboard, client.games and client.time.