Metadata-Version: 2.1
Name: smartypants
Version: 2.0.1
Summary: Python with the SmartyPants
Home-page: https://github.com/leohemsted/smartypants.py
Author: Leo Hemsted
Author-email: leohemsted@gmail.com
License: BSD License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: Filters
License-File: COPYING

.. image:: https://badge.fury.io/py/smartypants.svg
    :target: PyPI_

.. image:: https://secure.travis-ci.org/leohemsted/smartypants.py.png
    :target: https://travis-ci.org/leohemsted/smartypants.py

smartypants
===========

smartypants_ is a Python fork of SmartyPants__.

.. _smartypants: https://github.com/leohemsted/smartypants.py
__ SmartyPantsPerl_
.. _SmartyPantsPerl: http://daringfireball.net/projects/smartypants/



Installation
------------

To install it:

.. code:: sh

  pip install smartypants


Quick usage
-----------

To use it as a module:

.. code:: python

  import smartypants

  text = '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port'
  print(smartypants.smartypants(text))

To use the command-line script ``smartypants``:

.. code:: sh

  echo '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port' | smartypants

Both produce::

  &#8220;SmartyPants&#8221; is smart, so is <code>smartypants</code> &#8212; a Python port


More information
----------------

* Documentation_
* `Source code`_
* PyPI_

.. _documentation: http://pythonhosted.org/smartypants/
.. _Source code: smartypants_
.. _PyPI: https://pypi.python.org/pypi/smartypants/
