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 details)
smartypants-1.7.0.tar.gz
(6.6 kB
view details)
Built Distribution
smartypants-1.7.0.win32.exe
(68.6 kB
view details)
File details
Details for the file smartypants-1.7.0.zip
.
File metadata
- Download URL: smartypants-1.7.0.zip
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
edb0420cb73a894e94162a215699985b49c5c2342fa6f9db6537fe51b763e00d
|
|
MD5 |
13f8b0bceca9cec0d885e8a609e29f29
|
|
BLAKE2b-256 |
c444423507715ed998aa6c959b64721a0e073efc652c2450b2b8f08a7f002bf5
|
File details
Details for the file smartypants-1.7.0.tar.gz
.
File metadata
- Download URL: smartypants-1.7.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
67107a2c99d90adad78775843f8db65effbcfa65e843e5fbd37ef4c30b16610c
|
|
MD5 |
69f3b69bbb5bdd72d100f0f96b2de67f
|
|
BLAKE2b-256 |
ea97ca27599c3663f767e1e8156e159c1291aa565826ea95feaf783429bd40a2
|
File details
Details for the file smartypants-1.7.0.win32.exe
.
File metadata
- Download URL: smartypants-1.7.0.win32.exe
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e8df7edfe2416d605499b0cfb299163e500bc82e5bd2438c5d569e75f6b4bfa3
|
|
MD5 |
c1bc7f5c46dee03ea68b2f4389a6963d
|
|
BLAKE2b-256 |
a4f83705b66bd26529022de49a0e9d02eb57723aea41d35d07d7512c60e2818d
|