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.0.zip
(8.5 kB
view details)
smartypants-1.8.0.tar.gz
(7.2 kB
view details)
Built Distribution
smartypants-1.8.0.win32.exe
(69.1 kB
view details)
File details
Details for the file smartypants-1.8.0.zip
.
File metadata
- Download URL: smartypants-1.8.0.zip
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
de67b50b968d4feeb4c930f151884a55569fcf552ad6eaea9fb3680a1e34f634
|
|
MD5 |
3bb81a5c010474f941ab586a8836ed49
|
|
BLAKE2b-256 |
7328bcdf49535b194fd1022a0829007257efd99ae7f51e214550a04de6a7e08a
|
File details
Details for the file smartypants-1.8.0.tar.gz
.
File metadata
- Download URL: smartypants-1.8.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f0e2c71a352fc5f4b14477bad9b42cf67ad85863c37cc72dd286fac447d4be3c
|
|
MD5 |
6dffa5f057739519b891ee6c30ba2cbd
|
|
BLAKE2b-256 |
3db8f5bbcdfa03c0bdd08055e2713f331d23c5c54d879f957f63a042563af4a2
|
File details
Details for the file smartypants-1.8.0.win32.exe
.
File metadata
- Download URL: smartypants-1.8.0.win32.exe
- Upload date:
- Size: 69.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
634b0e338778b8f8053fe1455f759bcb123bb328231a1841f2a38a2242a80786
|
|
MD5 |
c6ea1444dbb68780ed1c7a6b6e64a983
|
|
BLAKE2b-256 |
4a7c4871371b5887982f3e5e0d746ecfb6ee30a23ed70c6fc1f7d74b8c2e6977
|