def connect(self, team: str='admin', db: Optional[str]=None, remote_auth: str=None, use_token: bool=False, jwt_token: Optional[str]=None, api_token: Optional[str]=None, key: str='root', user: str='admin', branch: str='main', ref: Optional[str]=None, repo: str='local', **kwargs) -> None:
    'Connect to a Terminus server at the given URI with an API key.\n\n        Stores the connection settings and necessary meta-data for the connected server. You need to connect before most database operations.\n\n        Parameters\n        ----------\n        team: str\n            Name of the team, default to be "admin"\n        db: optional, str\n            Name of the database connected\n        remote_auth: optional, str\n            Remote Auth setting\n        key: optional, str\n            API key for connecting, default to be "root"\n        user: optional, str\n            Name of the user, default to be "admin"\n        use_token: bool\n            Use token to connect. If both `jwt_token` and `api_token` is not provided (None), then it will use the ENV variable TERMINUSDB_ACCESS_TOKEN to connect as the API token\n        jwt_token: optional, str\n            The Bearer JWT token to connect. Default to be None.\n        api_token: optional, strs\n            The API token to connect. Default to be None.\n        branch: optional, str\n            Branch to be connected, default to be "main"\n        ref: optional, str\n            Ref setting\n        repo: optional, str\n            Local or remote repo, default to be "local"\n        \\**kwargs\n            Extra configuration options.\n\n        Examples\n        -------\n        >>> client = WOQLClient("https://127.0.0.1:6363")\n        >>> client.connect(key="root", team="admin", user="admin", db="example_db")\n        '
    self.team = team
    self.db = db
    self._remote_auth = remote_auth
    self._key = key
    self.user = user
    self._use_token = use_token
    self._jwt_token = jwt_token
    self._api_token = api_token
    self.branch = branch
    self.ref = ref
    self.repo = repo
    self._connected = True
    try:
        self._db_info = json.loads(_finish_response(requests.get((self.api + '/info'), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, auth=self._auth())))
    except Exception as error:
        raise InterfaceError(f'Cannot connect to server, please make sure TerminusDB is running at {self.server_url} and the authentication details are correct. Details: {str(error)}') from None
    if (self.db is not None):
        try:
            _finish_response(requests.head(self._db_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, params={'exists': 'true'}, auth=self._auth()))
        except DatabaseError:
            raise InterfaceError(f'Connection fail, {self.db} does not exist.')
    self._author = self.user
Connect to a Terminus server at the given URI with an API key.

Stores the connection settings and necessary meta-data for the connected server. You need to connect before most database operations.

Parameters
----------
team: str
    Name of the team, default to be "admin"
db: optional, str
    Name of the database connected
remote_auth: optional, str
    Remote Auth setting
key: optional, str
    API key for connecting, default to be "root"
user: optional, str
    Name of the user, default to be "admin"
use_token: bool
    Use token to connect. If both `jwt_token` and `api_token` is not provided (None), then it will use the ENV variable TERMINUSDB_ACCESS_TOKEN to connect as the API token
jwt_token: optional, str
    The Bearer JWT token to connect. Default to be None.
api_token: optional, strs
    The API token to connect. Default to be None.
branch: optional, str
    Branch to be connected, default to be "main"
ref: optional, str
    Ref setting
repo: optional, str
    Local or remote repo, default to be "local"
\**kwargs
    Extra configuration options.

Examples
-------
>>> client = WOQLClient("https://127.0.0.1:6363")
>>> client.connect(key="root", team="admin", user="admin", db="example_db")
def connect(self, team: str='admin', db: Optional[str]=None, remote_auth: str=None, use_token: bool=False, jwt_token: Optional[str]=None, api_token: Optional[str]=None, key: str='root', user: str='admin', branch: str='main', ref: Optional[str]=None, repo: str='local', **kwargs) -> None:
    'Connect to a Terminus server at the given URI with an API key.\n\n        Stores the connection settings and necessary meta-data for the connected server. You need to connect before most database operations.\n\n        Parameters\n        ----------\n        team: str\n            Name of the team, default to be "admin"\n        db: optional, str\n            Name of the database connected\n        remote_auth: optional, str\n            Remote Auth setting\n        key: optional, str\n            API key for connecting, default to be "root"\n        user: optional, str\n            Name of the user, default to be "admin"\n        use_token: bool\n            Use token to connect. If both `jwt_token` and `api_token` is not provided (None), then it will use the ENV variable TERMINUSDB_ACCESS_TOKEN to connect as the API token\n        jwt_token: optional, str\n            The Bearer JWT token to connect. Default to be None.\n        api_token: optional, strs\n            The API token to connect. Default to be None.\n        branch: optional, str\n            Branch to be connected, default to be "main"\n        ref: optional, str\n            Ref setting\n        repo: optional, str\n            Local or remote repo, default to be "local"\n        \\**kwargs\n            Extra configuration options.\n\n        Examples\n        -------\n        >>> client = WOQLClient("https://127.0.0.1:6363")\n        >>> client.connect(key="root", team="admin", user="admin", db="example_db")\n        '
    self.team = team
    self.db = db
    self._remote_auth = remote_auth
    self._key = key
    self.user = user
    self._use_token = use_token
    self._jwt_token = jwt_token
    self._api_token = api_token
    self.branch = branch
    self.ref = ref
    self.repo = repo
    self._connected = True
    try:
        self._db_info = json.loads(_finish_response(requests.get((self.api + '/info'), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, auth=self._auth())))
    except Exception as error:
        raise InterfaceError(f'Cannot connect to server, please make sure TerminusDB is running at {self.server_url} and the authentication details are correct. Details: {str(error)}') from None
    if (self.db is not None):
        try:
            _finish_response(requests.head(self._db_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, params={'exists': 'true'}, auth=self._auth()))
        except DatabaseError:
            raise InterfaceError(f'Connection fail, {self.db} does not exist.')
    self._author = self.user