curia.utils.session module¶
- curia.utils.session.create_session(env: str, api_token: str, debug: bool = False) Session ¶
Utility function for formatting of new session
- Parameters:
env (str) – Production, development, or staging environment.
api_token (str) – Generated API token. Run dbutils.secrets.get(scope=’your_id’, key=’ALEDADE_PROD_API_KEY’) to get the API token.
debug (bool, optional) – Whether to have a debug session Defaults to False.
- Returns:
The new session.
- Return type: