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.5.zip
(15.1 kB
view hashes)
smartypants-1.8.5.tar.gz
(12.9 kB
view hashes)
Built Distributions
smartypants-1.8.5.win32.exe
(71.3 kB
view hashes)
Close
Hashes for smartypants-1.8.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a762e9a22c3fb234af14d351692ad9c6db6d87ef67b9ba5ec9fe3923473d60 |
|
MD5 | 7581b07f2ea6ca71b958d911ba982080 |
|
BLAKE2b-256 | 8c3c0bb5c25896cc1058e5d5c630a7dbed8b341f1112ecc63bc5f0fc66d485a3 |