ZINC api: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
[[Category: | [[Category:API]] | ||
[[Category: | [[Category:ZINC]] | ||
Revision as of 21:47, 12 March 2014
Here we explain how to access ZINC via an application programming interface (api)
Please note that this is for zinc13 and beyond that is based on rdkit and psql. Previously, zinc was in mysql.
ZINC api (r/w)
models defines tables, what columns they have, relationships
managers defines higher-level common queries
The ZINC api is composed of many managers (one for substances, one for catalogs, one for targets, etc)
You can do things like this with a manager:
in_stock = zinc.catalogs.query(Catalog.purchasbility==1)