download_extract_sqlite

download_extract_sqlite(version=None, *, prefix=None, return_version=False)[source]

Ensure the latest ChEMBL SQLite dump is downloaded and extracted.

Parameters:
  • version (Optional[str]) – The version number of ChEMBL to get. If none specified, uses latest() to look up the latest.

  • prefix (Optional[Sequence[str]]) – The directory inside pystow to use

  • return_version (bool) – Should the version get returned? Turn this to true if you’re looking up the latest version and want to reduce redundant code.

Return type:

Union[Path, Tuple[str, Path]]

Returns:

If return_version is true, return a pair of the version and the local file path to the downloaded ChEMBLSQLite database file. Otherwise, just return the path.

Raises:

FileNotFoundError – If no database file could be found in the extracted directories