ChemInformant.api_helpers module#
- setup_cache(cache_name='pubchem_cache', backend='sqlite', expire_after=604800, **kwargs)[source]#
Configures the cache used for PubChem API requests.
Call this function before making any ChemInformant API calls if you want to use non-default cache settings. This function should be imported from the ChemInformant package level (e.g., ChemInformant.setup_cache(…)).
- get_cids_by_name(compound_name)[source]#
Get a list of PubChem CIDs matching a name. Returns None if none found.
- get_batch_properties(cids, properties)[source]#
Get multiple properties for a list of CIDs in one request.