aoptk.normalization.pubchem_api =============================== .. py:module:: aoptk.normalization.pubchem_api Classes ------- .. autoapisummary:: aoptk.normalization.pubchem_api.PubChemAPI Module Contents --------------- .. py:class:: PubChemAPI Bases: :py:obj:`aoptk.normalization.normalize_chemical.NormalizeChemical` Use PubChem API to normalize chemical names. .. py:attribute:: timeout :value: 10 .. py:attribute:: _session .. py:method:: normalize_chemical(chemical: aoptk.chemical.Chemical) -> aoptk.chemical.Chemical Use the PubChem API to normalize a chemical name. This method may modify the given ``chemical`` instance in-place by updating its ``heading`` attribute when a title is found in PubChem. The same ``chemical`` instance that is passed in is returned. .. py:method:: _find_title_in_pubchem(chemical_name: str) -> str | None Find the title chemical name from PubChem. .. py:method:: _find_synonyms_in_pubchem(chemical_name: str) -> set[str] Find synonyms for a chemical name from PubChem.