Python with the SmartyPants
Project description
smartypants is a Python fork 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</code> -- a Python port'
print(smartypants.smartypants(text))
To use the command-line script smartypants:
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
More information
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.8.6.zip
(15.4 kB
view hashes)
smartypants-1.8.6.tar.gz
(13.3 kB
view hashes)
Built Distributions
smartypants-1.8.6.win32.exe
(71.3 kB
view hashes)
Close
Hashes for smartypants-1.8.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd840fd1144c6959a5d0578531d7f2b4efb134f7ce00cf60380c89402d36ff1d |
|
MD5 | 510e30ab28bc0128ef030b4c26d809ce |
|
BLAKE2b-256 | 96d73503fac52e97455d0b62ba489a2eae4bd3e952ce9c36b0c840cb3a23adf8 |