MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / __init__

Method __init__

bmtools/tools/chemical/prop/api.py:9–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected