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 details)
Built Distribution
File details
Details for the file smartypants-2.0.0.tar.gz
.
File metadata
- Download URL: smartypants-2.0.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7812353a32022699a1aa8cd5626e01c94a946dcaeedaee2d0b382bae4c4cbf36
|
|
MD5 |
00b9105ac7ee1d53ca50c05dca4d5ad8
|
|
BLAKE2b-256 |
09dd08848ea21422a585ecd2dd32c032fd8f75f0f8345225b455f3bf9e5a0feb
|
File details
Details for the file smartypants-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: smartypants-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a049e40c146ee654955e62865b579f8715fd62ecf363c2f520fe4a489435019f
|
|
MD5 |
00328fc40c4d51bacfd91bbeb1c87b68
|
|
BLAKE2b-256 |
1f39c5d5e3ad8267bb3a6448df437ce7c4c7110a49a139949656742c1f2302be
|