Spaces:
Sleeping
Sleeping
File size: 215 Bytes
ddd8517 |
1 2 3 4 5 6 7 8 |
from pubchempy import get_compounds
def polymer_name_to_smiles(polymer_name: str):
compounds = get_compounds(polymer_name, 'name')
if compounds:
return compounds[0].canonical_smiles
return None
|