Skip to main content

Python Port of John Gruber's titlecase.pl

Project description

Titlecase is a port of John Gruber’s titlecase.pl http://daringfireball.net/2008/05/title_case

This filter changes all words to Title Caps, and attempts to be clever about uncapitalizing SMALL words like a/an/the in the input.

The list of “SMALL words” which are not capped comes from the New York Times Manual of Style, plus ‘vs’ and ‘v’.

Usage

To use it is as simple as:

>>> from titlecase import titlecase
>>> titlecase('a thing')
'A Thing'

Bugs/Patches/Contributions

See https://launchpad.net/titlecase.py

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

titlecase-0.5.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

titlecase-0.5.1-py2.6.egg (8.7 kB view details)

Uploaded Source

File details

Details for the file titlecase-0.5.1.tar.gz.

File metadata

  • Download URL: titlecase-0.5.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for titlecase-0.5.1.tar.gz
Algorithm Hash digest
SHA256 62acc33a6f05ec4c9e51e0a128fdb5eb0eb352e724a4e53b0f3c5c09d171f1cc
MD5 ad1486272f93cfdf273b17396af696a5
BLAKE2b-256 df4bd6a70f67265370315da9fc1319483a22f46a2274220bb62c29149b9c0434

See more details on using hashes here.

File details

Details for the file titlecase-0.5.1-py2.6.egg.

File metadata

File hashes

Hashes for titlecase-0.5.1-py2.6.egg
Algorithm Hash digest
SHA256 88be96f75c11d8831e871e8a9d738b050b767b3100241e1e0d25c00a3fb3631b
MD5 ac01279418589884a4ad389e8f438dc4
BLAKE2b-256 74c62f208cd12e9372db99b9bc1065d7e3330d9908a31445a84f65bfd9a0bf13

See more details on using hashes here.

Supported by

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