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.1.zip
(8.0 kB
view details)
smartypants-1.7.1.tar.gz
(6.7 kB
view details)
Built Distribution
smartypants-1.7.1.win32.exe
(68.6 kB
view details)
File details
Details for the file smartypants-1.7.1.zip
.
File metadata
- Download URL: smartypants-1.7.1.zip
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6019c2b3edcccc55be87dac977a24b96d203b6285a5275ff2db4e943c172f640
|
|
MD5 |
0d09b6c0bb1c4754343741bfcfbb61b7
|
|
BLAKE2b-256 |
2d3d79bdd50b6c42d16a716d99ea93e53cd101308a3461e1972e1f6e769d62d7
|
File details
Details for the file smartypants-1.7.1.tar.gz
.
File metadata
- Download URL: smartypants-1.7.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8c7399a418514cb1a66886134f84b20f2af768dadc61b4371c2e1108e6b7cb8f
|
|
MD5 |
bdae52387cc7bdaf859ceb0d028887d4
|
|
BLAKE2b-256 |
935c7e4ebeb224e1a6cb4396ccdc0e712746d2c5ad6a90b66824c4d4ac9f697c
|
File details
Details for the file smartypants-1.7.1.win32.exe
.
File metadata
- Download URL: smartypants-1.7.1.win32.exe
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
510a6c2907c26af75800853175c7aa180b59462bad80e4304cf4bf0dec6b8ec1
|
|
MD5 |
726ab30cf0087542fa3dca01fd32a125
|
|
BLAKE2b-256 |
3f58e7a6e4bbf7ffb5513f2eb67dcfb3e00b9682b919d95678fad34f85281a4e
|