Python with the SmartyPants
Project description
smartypants.py is a Python port of SmartyPants.
Installation
To install it:
pip install smartypants
Quick usage
To use it as a module:
import smartypants
text = '"SmartyPants" is smart, so is <code>smartypants.py</code> -- a Python port'
print(smartypants.smartyPants(text))
To use the command-line script smartypants:
echo '"SmartyPants" is smart, so is <code>smartypants.py</code> -- a Python port' | smartypants
Both produce:
“SmartyPants” is smart, so is <code>smartypants.py</code> — a Python port
More information
Please visit smartypants.py on Bitbucket.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
smartypants-1.7.0.zip
(7.5 kB
view hashes)
smartypants-1.7.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
smartypants-1.7.0.win32.exe
(68.6 kB
view hashes)