Skip to main content

A simple Python wrapper around the PubChem PUG REST API.

Project description

http://img.shields.io/pypi/v/PubChemPy.svg?style=flat http://img.shields.io/pypi/l/PubChemPy.svg?style=flat http://img.shields.io/travis/mcs07/PubChemPy/master.svg?style=flat http://img.shields.io/coveralls/mcs07/PubChemPy/master.svg?style=flat

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)
CCCCCCCNC1CCCC1CCCCCCC(=O)O
>>> comps = get_compounds('Aspirin', 'name')
>>> print(comps[0].xlogp)
1.2

Installation

Install PubChemPy using:

pip install pubchempy

Alternatively, try one of the other installation options.

Documentation

Full documentation is available at http://pubchempy.readthedocs.io.

Contribute

  • Feature ideas and bug reports are welcome on the Issue Tracker.

  • Fork the source code on GitHub, make changes and file a pull request.

License

PubChemPy is licensed under the MIT license.

Project details


Download files

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

Source Distribution

PubChemPy-1.0.4.tar.gz (29.8 kB view details)

Uploaded Source

File details

Details for the file PubChemPy-1.0.4.tar.gz.

File metadata

  • Download URL: PubChemPy-1.0.4.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PubChemPy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 24e9dc2fc90ab153b2764bf805e510b1410700884faf0510a9e7cf0d61d8ed0e
MD5 95343bfd5304e5f660b67de61dea33c1
BLAKE2b-256 aafb8de3aa9804b614dbc8dc5c16ed061d819cc360e0ddecda3dcd01c1552339

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page