Skip to main content
Help us improve Python packaging – donate today!

Python Port of John Gruber's titlecase.pl

Project Description

This filter changes all words to Title Caps, and attempts to be clever about unSMALL 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’.

This is a fork of Stuart Colville’s titlecase.py, which was in turn a port of John Gruber’s titlecase.pl.

The purpose of this fork is to update the package to support Python 3 as well as provide a maintained version of this utility. Issues or better pull requests are welcome.

Usage

To use it is as simple as:

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

Release history Release notifications

History Node

0.12.0

History Node

0.11.0

History Node

0.10.0

History Node

0.9.0

History Node

0.8.2

History Node

0.8.1

History Node

0.8.0

History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

This version
History Node

0.6.0

History Node

0.5.1

History Node

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
titlecase-0.6.0.tar.gz (4.4 kB) Copy SHA256 hash SHA256 Source None Apr 25, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page