Source code for tamr_client.session
from tamr_client._types import Session
from tamr_client._types.auth import UsernamePasswordAuth
[docs]def from_auth(auth: UsernamePasswordAuth) -> Session:
"""Create a new authenticated session
Args:
auth: Authentication
"""
s = Session()
s._stored_auth = auth
return s