PubChemPy
PubChemPy copied to clipboard
Update pubchempy.py
Canonical SMILES and Isometric SMILES are listed as deprecated in favor of SMILES on the PUG REST documentation Link Added capability to get SMILES string as follows:
def run(Compound_Name): compounds = pcp.get_compounds(Compound_Name, 'name') for c in compounds: print(c.to_dict(properties=['smiles'])['smiles'])