(self)
| 7 | |
| 8 | class ChemicalPropAPI: |
| 9 | def __init__(self) -> None: |
| 10 | self._endpoint = "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/" |
| 11 | |
| 12 | def get_name_by_cid(self, cid : str, top_k : Optional[int] = None) -> List[str]: |
| 13 | html_doc = requests.get(f"{self._endpoint}cid/{cid}/synonyms/XML").text |
nothing calls this directly
no outgoing calls
no test coverage detected