Skip to main content

Python Port of John Gruber's

Project description

Titlecase is a port of John Gruber’s

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’.


To use it is as simple as:

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



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.4.tar.gz (3.7 kB view hashes)

Uploaded source

Built Distributions

titlecase-0.4-py2.6.egg (7.7 kB view hashes)

Uploaded 2 6

titlecase-0.4-py2.5.egg (7.7 kB view hashes)

Uploaded 2 5

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page