Skip to main content

Python with the SmartyPants

Project description

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

Project details


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.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

smartypants-2.0.2-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file smartypants-2.0.2.tar.gz.

File metadata

  • Download URL: smartypants-2.0.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for smartypants-2.0.2.tar.gz
Algorithm Hash digest
SHA256 39d64ce1d7cc6964b698297bdf391bc12c3251b7f608e6e55d857cd7c5f800c6
MD5 3149badecd0771c80ee9db4d09695edd
BLAKE2b-256 6c8fa033f78196d9467b402d100ec40b95166d43fa2642693f23f771473d8195

See more details on using hashes here.

File details

Details for the file smartypants-2.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: smartypants-2.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for smartypants-2.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9471578606e8ee0740065bf8771f55fec8c83313cb98c5d1c1864ddd389d0f3a
MD5 8477bbd9ad12b0d84b779d4563522dcc
BLAKE2b-256 392cf12558bff677defbfc64bf32441daec245df608dd2d9a12168f1d766ad75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page