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.8.1.zip
(8.5 kB
view details)
smartypants-1.8.1.tar.gz
(7.3 kB
view details)
Built Distribution
smartypants-1.8.1.win32.exe
(69.1 kB
view details)
File details
Details for the file smartypants-1.8.1.zip
.
File metadata
- Download URL: smartypants-1.8.1.zip
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1ee0902a246f535f2fd732744e57b9486fcc8bf4ac4990d26588521936d68104
|
|
MD5 |
6108cf1e0f822e335a3e336ccfea6a5f
|
|
BLAKE2b-256 |
2b31d318d21814050440c6fcdb91fe9f219ed9ba555ed4cb2d826baab96c2284
|
File details
Details for the file smartypants-1.8.1.tar.gz
.
File metadata
- Download URL: smartypants-1.8.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8135d8fc1ddc9c526975b3ae652f7e1a121fa3311bdcef7e431e180795cf5f75
|
|
MD5 |
a677deff5a8e2fd711887bdda6ec0415
|
|
BLAKE2b-256 |
027310858cea89fc7ac252bc64a765281f880f6fcccef293911e11b1fa3668ff
|
File details
Details for the file smartypants-1.8.1.win32.exe
.
File metadata
- Download URL: smartypants-1.8.1.win32.exe
- Upload date:
- Size: 69.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ec8222146f09a204b148c3c98d0ea79cd40323e05f4f6d6ccc051f49c128b597
|
|
MD5 |
6d8b5f91d0ee8ef651881615310a3cb1
|
|
BLAKE2b-256 |
b7629668d389eb2b2721a3a3ddc43966466687c01da0e513f139e76acad55ac0
|