cursor()
Ensure, connect, and get a cursor from the database to the database.
version (Optional[str]) – The version number of ChEMBL to get. If none specified, uses latest() to look up the latest.
Optional
str
latest()
prefix (Optional[Sequence[str]]) – The directory inside pystow to use
Sequence
pystow
The SQLite cursor object.
Example: .. code-block:: python
import chembl_downloader with chembl_downloader.cursor() as cursor:cursor.execute(…)
import chembl_downloader
cursor.execute(…)