bw2io.chemidplus
#
Module Contents#
Classes#
Use the ChemIDPlus API to lookup synonyms for chemicals, including pesticides. |
Functions#
CAS numbers have up to ten digits; we remove zero padding and add hyphens where needed. |
Attributes#
- exception bw2io.chemidplus.Missing[source]#
Bases:
Exception
404 or other error code returned.
- Parameters
exception (Exception) β Exception to raise.
signature. (Initialize self. See help(type(self)) for accurate) β
- exception bw2io.chemidplus.Multiple[source]#
Bases:
Exception
Multiple results for given search query.
- Parameters
exception (Exception) β Exception to raise.
signature. (Initialize self. See help(type(self)) for accurate) β
- class bw2io.chemidplus.ChemIDPlus[source]#
Use the ChemIDPlus API to lookup synonyms for chemicals, including pesticides.
Always used to match against a master list. Seeded with names from ecoinvent.
- api_cache#
Dictionary with raw data from API, key is canonical name.
- Type
dict
- master_mapping#
Dictionary from synonyms, including canonical names, to master flows.
- Type
dict
- forbidden_keys#
Identifiers that arenβt unique in the ChemIDPlus system.
- Type
set
- CAS_TEMPLATE = 'https://chem.nlm.nih.gov/api/data/search?data=complete&exp=rn%2Feq%2F{cas}'[source]#