Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install smartypants
How to install smartypants
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install smartypants
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) |
1.6.0.3
| | |
---|
Windows (64-bit) | 
1.6.0.3
| | |
---|
Mac OS X (10.5+) |
1.7.1
| | |
---|
Linux (32-bit) |
1.8.1
| | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 1.8.2 on Sep 20th, 2013
smartypants is a Python port of SmartyPants.
Installation
To install it:
System Message: ERROR/3 (<string>, line 16)
Unknown directive type "code".
.. code:: sh
pip install smartypants
Quick usage
To use it as a module:
System Message: ERROR/3 (<string>, line 26)
Unknown directive type "code".
.. 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:
System Message: ERROR/3 (<string>, line 35)
Unknown directive type "code".
.. code:: sh
echo '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port' | smartypants
Both produce:
“SmartyPants” is smart, so is <code>smartypants</code> — a Python port