Skip to content

Files

Latest commit

bf1c83d · Jan 31, 2012

History

History
33 lines (25 loc) · 578 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 578 Bytes

ChemSpiPy

Python wrapper for the ChemSpider API.

Forked from ChemSpiPy by Cameron Neylon.

Usage

import chemspipy

# Specify compound by ChemSpider ID
c = Compound('236')

# Search using name, SMILES, InChI, InChIKey, etc.
c = chemspipy.find_one('benzene')
c = chemspipy.find('benzene')[0]

Properties of the compound class:

c.imageurl
c.mf
c.smiles
c.inchi
c.inchikey
c.averagemass
c.molecularweight
c.monoisotopicmass
c.nominalmass
c.alogp
c.xlogp
c.commonname
c.image
c.mol