Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple Python wrapper around the PubChem PUG REST API.

Project description

PubChemPy provides a way to interact with PubChem in Python. It allows chemical searches by name, substructure and similarity, chemical standardization, conversion between chemical file formats, depiction and retrieval of chemical properties.

>>> from pubchempy import get_compounds, Compound
>>> comp = Compound.from_cid(1423)
>>> print(comp.isomeric_smiles)
>>> comps = get_compounds('Aspirin', 'name')
>>> print(comps[0].xlogp)


Install PubChemPy using:

pip install pubchempy

Alternatively, try one of the other installation options.


Full documentation is available at


  • Feature ideas and bug reports are welcome on the Issue Tracker.
  • Fork the source code on GitHub, make changes and file a pull request.


PubChemPy is licensed under the MIT license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PubChemPy, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size PubChemPy-1.0.4.tar.gz (29.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page