Skip to content

Commit

Permalink
Merge pull request #7 from bjodah/pretty_readme
Browse files Browse the repository at this point in the history
Add syntax highlighting and output to README example.
  • Loading branch information
mcs07 committed Sep 21, 2015
2 parents 9161564 + 4d3f151 commit 8cf9369
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ PubChemPy provides a way to interact with PubChem in Python. It allows chemical
similarity, chemical standardization, conversion between chemical file formats, depiction and retrieval of chemical
properties.

::

from pubchempy import get_compounds, Compound
.. code:: python
comp = Compound.from_cid(1423)
print comp.isomeric_smiles
>>> 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
comps = get_compounds('Aspirin', 'name')
print comps[0].xlogp
Installation
------------
Expand Down

0 comments on commit 8cf9369

Please sign in to comment.