download_extract_sqlite

download_extract_sqlite(version: str | int | float | VersionInfo | None = None, *, prefix: Sequence[str] | None = None, return_version: Literal[True] = False, retain: bool = False) VersionPathPair[source]
download_extract_sqlite(version: str | int | float | VersionInfo | None = None, *, prefix: Sequence[str] | None = None, return_version: Literal[False] = False, retain: bool = False) Path

Ensure the latest ChEMBL SQLite dump is downloaded and extracted.

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

  • prefix – The directory inside pystow to use

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

  • retain – If true, keeps the original archive.

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