Skip to main content

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:

&#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.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

smartypants-2.0.0-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2Python 3

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

Hashes for smartypants-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7812353a32022699a1aa8cd5626e01c94a946dcaeedaee2d0b382bae4c4cbf36
MD5 00b9105ac7ee1d53ca50c05dca4d5ad8
BLAKE2b-256 09dd08848ea21422a585ecd2dd32c032fd8f75f0f8345225b455f3bf9e5a0feb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smartypants-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a049e40c146ee654955e62865b579f8715fd62ecf363c2f520fe4a489435019f
MD5 00328fc40c4d51bacfd91bbeb1c87b68
BLAKE2b-256 1f39c5d5e3ad8267bb3a6448df437ce7c4c7110a49a139949656742c1f2302be

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