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 Distribution
smartypants-2.0.0.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for smartypants-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a049e40c146ee654955e62865b579f8715fd62ecf363c2f520fe4a489435019f |
|
MD5 | 00328fc40c4d51bacfd91bbeb1c87b68 |
|
BLAKE2b-256 | 1f39c5d5e3ad8267bb3a6448df437ce7c4c7110a49a139949656742c1f2302be |