mcs07 / PubChemPy

Python wrapper for the PubChem PUG REST API.
http://pubchempy.readthedocs.io
MIT License
379 stars 106 forks source link
cheminformatics chemistry pubchem python

PubChemPy

.. image:: http://img.shields.io/pypi/v/PubChemPy.svg?style=flat :target: https://pypi.python.org/pypi/PubChemPy

.. image:: http://img.shields.io/pypi/l/PubChemPy.svg?style=flat :target: https://github.com/mcs07/PubChemPy/blob/master/LICENSE

.. image:: http://img.shields.io/travis/mcs07/PubChemPy/master.svg?style=flat :target: https://travis-ci.org/mcs07/PubChemPy

.. image:: http://img.shields.io/coveralls/mcs07/PubChemPy/master.svg?style=flat :target: https://coveralls.io/r/mcs07/PubChemPy?branch=master

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.

.. code:: python

>>> 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

License

PubChemPy is licensed under the MIT license_.

.. installation options: http://pubchempy.readthedocs.io/en/latest/guide/install.html .. source code: https://github.com/mcs07/PubChemPy .. Issue Tracker: https://github.com/mcs07/PubChemPy/issues .. MIT license: https://github.com/mcs07/PubChemPy/blob/master/LICENSE