asreview.is_project#

asreview.is_project(project, raise_on_old_version=True)[source]#

Check if the given path is a valid ASReview project.

Parameters:
  • project (str or Project) – The path to the project directory or a Project instance.

  • raise_on_old_version (bool, optional) – If True, raise an error for projects with old versions. Default is True.

Returns:

bool – True if the path is a valid ASReview project, False otherwise.

Raises:
  • ProjectNotFoundError – If the project directory does not exist or is not found.

  • ProjectError – If the path is not a directory or the project is of an older version.