Molecule Tutorials - Herong's Tutorial Examples - v1.26, by Herong Yang
chembl_webresource_client - Python Client
This section provides a tutorial example to install chembl_webresource_client, the Official Python client for accessing ChEMBL API.
If you are a Python user, you should intall chembl_webresource_client, which is the Official Python client for accessing ChEMBL API.
1. Make sure you have Python installed.
2. Install chembl_webresource_client with "pip" command:
herong$ pip3 install chembl_webresource_client Collecting chembl_webresource_client Using cached https://files.pythonhosted.org/packages/...\ /chembl-webresource-client-0.10.0.tar.gz Collecting urllib3 (from chembl_webresource_client) Downloading https://files.pythonhosted.org/packages/...\ /urllib3-1.25.7-py2.py3-none-any.whl (125kB) Collecting requests>=2.18.4 (from chembl_webresource_client) ERROR: Could not find a version that satisfies the requirement \ requests>=2.18.4 (from chembl_webresource_client) ERROR: No matching distribution found for requests>=2.18.4
3. Search for the missing package. "request (2019.4.13)" is available.
herong$ pip3 search request request (2019.4.13) - http REQUEST (GET+POST) dict request-validator (2.0.5) - Python request validator request-lifecycle (1.1.3) - Request lifecycle logger for flask ...
4. Install "request (2019.4.13)" first.
herong$ pip3 install request Collecting request Collecting get (from request) Collecting post (from request) Collecting query_string (from get->request) Collecting public (from query_string->get->request) Installing collected packages: public, query-string, get, post, request Successfully installed get-2019.4.13 post-2019.4.13 public-2019.4.13 \ query-string-2019.4.13 request-2019.4.13
5. Install chembl_webresource_client again:
herong$ pip3 install chembl_webresource_client Collecting chembl_webresource_client Collecting urllib3 (from chembl_webresource_client) Collecting requests>=2.18.4 (from chembl_webresource_client) Collecting requests-cache>=0.4.7 (from chembl_webresource_client) ERROR: Could not find a version that satisfies the requirement \ requests-cache>=0.4.7 (from chembl_webresource_client) ERROR: No matching distribution found for requests-cache>=0.4.7
6. Install requests-cache first:
herong$ pip3 install requests-cache Collecting requests-cache Collecting requests>=1.1.0 (from requests-cache) Collecting idna<2.9,>=2.5 (from requests>=1.1.0->requests-cache) Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests...) Collecting chardet<3.1.0,>=3.0.2 (from requests>=1.1.0->requests-cache) Collecting certifi>=2017.4.17 (from requests>=1.1.0->requests-cache) Installing collected packages: idna, urllib3, chardet, certifi, ... Successfully installed certifi-2019.11.28 chardet-3.0.4 idna-2.8 \ requests-2.22.0 requests-cache-0.5.2 urllib3-1.25.7
7. Install chembl_webresource_client for the third time:
herong$ pip3 install chembl_webresource_client Collecting chembl_webresource_client Requirement already satisfied: urllib3 in /Library/... Requirement already satisfied: requests>=2.18.4 in /Library/... Requirement already satisfied: requests-cache>=0.4.7 in /Library/... Collecting easydict (from chembl_webresource_client) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/... Requirement already satisfied: idna<2.9,>=2.5 in /Library/... Requirement already satisfied: certifi>=2017.4.17 in /Library/... Installing collected packages: easydict, chembl-webresource-client Successfully installed chembl-webresource-client-0.10.0 easydict-1.9
Finally, I have chembl_webresource_client installed. For more information, go to the "Official Python client for accessing ChEMBL API" Website at https://github.com/chembl/chembl_webresource_client.
Table of Contents
Molecule Names and Identifications
Nucleobase, Nucleoside, Nucleotide, DNA and RNA
►ChEMBL Database - European Molecular Biology Laboratory
Call ChEMBL Data Web Service Directly
ChEMBL Data Resource - molecule
ChEMBL Data Resource - activity
ChEMBL Data Resource - document
ChEMBL Data Resource - chembl_id_lookup
►chembl_webresource_client - Python Client
chembl_webresource_client - Usage Examples
chembl_webresource_client - RetryError Exception
PubChem Database - National Library of Medicine
INSDC (International Nucleotide Sequence Database Collaboration)
HGNC (HUGO Gene Nomenclature Committee)