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