Skip to content

justinmayer/smartypants.py

Repository files navigation

smartypants GitHub Actions CI: continuous integration status PyPI: the Python Package Index Monthly Downloads from PyPI Repology: the packaging hub

smartypants is a Python fork of SmartyPants.

Installation

To install it:

python -m 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:

&#8220;SmartyPants&#8221; is smart, so is <code>smartypants</code> &#8212; a Python port

More information

About

Translate plain ASCII quotation marks and other characters into “smart” typographic HTML entities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6