"""module to wrap the session management in function calls to easily interact with the current session from C#""" from __future__ import annotations from typing import Final from delta_barth.api.common import Session from delta_barth.constants import HTTP_BASE_CONTENT_HEADERS SESSION: Final[Session] = Session(HTTP_BASE_CONTENT_HEADERS) def set_credentials( user_name: str, password: str, database: str, mandant: str, ) -> None: SESSION.set_credentials( user_name=user_name, password=password, database=database, mandant=mandant, ) def set_base_url( base_url: str, ) -> None: SESSION.set_base_url(base_url=base_url)