chembl / chembl_webresource_client

Official Python client for accessing ChEMBL API
https://www.ebi.ac.uk/chembl/api/data/docs
Other
368 stars 95 forks source link

cannot access TargetResource #47

Closed zeromtmu closed 4 years ago

zeromtmu commented 5 years ago

I try to access TargetResource via chembl_webresource_client but some error occurs.

screen shot 2561-09-17 at 11 11 24
eloyfelix commented 4 years ago

TargetResource and CompoundResource are deprecated as we shut down the endpoints that served them a while ago. You should instead use molecule and target using "new_client" object as shown on the readme file.

from chembl_webresource_client.new_client import new_client

molecule = new_client.molecule
target = new_client.target