def get_default_connection_details():
    """ Gets the connection details based on environment vars or Thanatos default settings.

    :return: Returns a dictionary of connection details.
    :rtype: dict
    """

    return {
        'host': os.environ.get('MYSQL_HOST', '127.0.0.1'),
        'user': os.environ.get('MYSQL_USER', 'vagrant'),
        'password': os.environ.get('MYSQL_PASSWORD', 'vagrant'),
        'database': os.environ.get('MYSQL_DB', 'thanatos'),
    }
def get_default_connection_details ( ) : return { 'host' : os . environ . get ( 'MYSQL_HOST' , '127.0.0.1' ) , 'user' : os . environ . get ( 'MYSQL_USER' , 'vagrant' ) , 'password' : os . environ . get ( 'MYSQL_PASSWORD' , 'vagrant' ) , 'database' : os . environ . get ( 'MYSQL_DB' , 'thanatos' ) , }
Gets the connection details based on environment vars or Thanatos default settings.

    :return: Returns a dictionary of connection details.
    :rtype: dict