def from_credentials(credentials, loop: asyncio.AbstractEventLoop=asyncio.get_event_loop()):
        """Returns a new async API object from an existing Credentials object.

        :param credentials: The existing saved credentials.
        :param loop: The asyncio loop.
        :return: A new API object populated with MyGeotab credentials.
        """
        return API(username=credentials.username, password=credentials.password,
                   database=credentials.database, session_id=credentials.session_id,
                   server=credentials.server, loop=loop)
def from_credentials ( credentials , loop : asyncio . AbstractEventLoop = asyncio . get_event_loop ( ) ) : return API ( username = credentials . username , password = credentials . password , database = credentials . database , session_id = credentials . session_id , server = credentials . server , loop = loop )
Returns a new async API object from an existing Credentials object.

        :param credentials: The existing saved credentials.
        :param loop: The asyncio loop.
        :return: A new API object populated with MyGeotab credentials.