def create_api(app_id=None, login=None, password=None, phone_number=None,
               timeout=10, scope='offline', api_version=None,
               session_cls=VKSession, **method_default_args):
    session = session_cls(app_id, login, password, phone_number=phone_number,
                          scope=scope, api_version=api_version)
    return API(session=session, timeout=timeout, **method_default_args)
Factory method to explicitly create API with app_id, login, password
dataset/ETHPy150Open prawn-cake/vk-requests/vk_requests/__init__.py/create_api