Project: smartypants

Python with the SmartyPants

Project Details

Latest version
2.0.1
Home Page
https://github.com/leohemsted/smartypants.py
PyPI Page
https://pypi.org/project/smartypants/

Project Popularity

PageRank
0.0016167586820811557
Number of downloads
55537

.. 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 smartypants -- a Python port' print(smartypants.smartypants(text))

To use the command-line script smartypants:

.. code:: sh

echo '"SmartyPants" is smart, so is smartypants -- a Python port' | smartypants

Both produce::

“SmartyPants” is smart, so is smartypants — a Python port

More information

  • Documentation_
  • Source code_
  • PyPI_

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