{ "info": { "author": "Pat Pannuto, Stuart Colville, John Gruber", "author_email": "pat.pannuto+titlecase@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Text Processing :: Filters" ], "description": "Titlecase\n=========\n\n.. image:: https://travis-ci.org/ppannuto/python-titlecase.svg?branch=master\n :target: https://travis-ci.org/ppannuto/python-titlecase\n.. image:: https://coveralls.io/repos/github/ppannuto/python-titlecase/badge.svg?branch=master\n :target: https://coveralls.io/github/ppannuto/python-titlecase?branch=master\n\nThis filter changes all words to Title Caps, and attempts to be clever\nabout SMALL words like a/an/the in the input.\n\nThe list of \"SMALL words\" which are not capped comes from the New York\nTimes Manual of Style, plus some others like 'vs' and 'v'.\n\nThis is a resurrection of `Stuart Colville's\ntitlecase.py `__,\nwhich was in turn a port of `John Gruber's\ntitlecase.pl `__.\n\nIssues, updates, pull requests, etc should be directed\n`to github `__.\n\n\nInstallation\n------------\n\nThe easiest method is to simply use pip:\n\n::\n\n (sudo) pip install titlecase\n\n\nUsage\n-----\n\nTitlecase provides only one function, simply:\n\n.. code-block:: python\n\n >>> from titlecase import titlecase\n >>> titlecase('a thing')\n 'A Thing'\n\nA callback function may also be supplied, which will be called for every word:\n\n.. code-block:: python\n\n >>> def abbreviations(word, **kwargs):\n ... if word.upper() in ('TCP', 'UDP'):\n ... return word.upper()\n ...\n >>> titlecase.titlecase('a simple tcp and udp wrapper', callback=abbreviations)\n 'A Simple TCP and UDP Wrapper'\n\nThe callback function is supplied with an ``all_caps`` keyword argument, indicating\nwhether the entire line of text was entirely capitalized. Returning ``None`` from\nthe callback function will allow titlecase to process the word as normal.\n\n\nCommand Line Usage\n------------------\n\nTitlecase also provides a command line utility ``titlecase``:\n\n.. code-block:: python\n\n $ titlecase make me a title\n Make Me a Title\n $ echo \"Can pipe and/or whatever else\" | titlecase\n Can Pipe and/or Whatever Else\n # Or read/write files:\n $ titlecase -f infile -o outfile\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ppannuto/python-titlecase", "keywords": "string formatting", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "titlecase", "package_url": "https://pypi.org/project/titlecase/", "platform": "", "project_url": "https://pypi.org/project/titlecase/", "project_urls": { "Homepage": "https://github.com/ppannuto/python-titlecase" }, "release_url": "https://pypi.org/project/titlecase/0.12.0/", "requires_dist": null, "requires_python": "", "summary": "Python Port of John Gruber's titlecase.pl", "version": "0.12.0" }, "last_serial": 3186005, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "12201d6230ca96947313e720960037b9", "sha256": "58e658713d24e474c6d21c37bb497b7b1369ff0ceae71c9fd23c773e188f63b8" }, "downloads": -1, "filename": "titlecase-0.10.0-py2-none-any.whl", "has_sig": false, "md5_digest": "12201d6230ca96947313e720960037b9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9438, "upload_time": "2017-05-19T15:41:44", "url": "https://files.pythonhosted.org/packages/b3/e5/6d0729aaa7b177341064d9c60bde9738740f7ff4cf6efa16d5a867f70cde/titlecase-0.10.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41a9ff91aac2cce49cbb6398ad1767b3", "sha256": "0f14115d3d56bcbf48c8c26f8ffb9c97321ac1968c762ee88319ab4942fa461b" }, "downloads": -1, "filename": "titlecase-0.10.0.tar.gz", "has_sig": false, "md5_digest": "41a9ff91aac2cce49cbb6398ad1767b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6830, "upload_time": "2017-05-19T15:41:42", "url": "https://files.pythonhosted.org/packages/02/10/6f19117f81910e6a35cfc4e9f520ca81ace4dfa79c23e1509ccf2b27ab01/titlecase-0.10.0.tar.gz" } ], "0.11.0": [ { "comment_text": "", "digests": { "md5": "b5426f6aed3b055ecb918c75df537df7", "sha256": "554c820c8165bd8658b4030bd10417e07a80d4a6ad8f13c02b9beb695e244152" }, "downloads": -1, "filename": "titlecase-0.11.0-py2-none-any.whl", "has_sig": false, "md5_digest": "b5426f6aed3b055ecb918c75df537df7", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9587, "upload_time": "2017-07-15T17:50:30", "url": "https://files.pythonhosted.org/packages/99/94/324d2016ffefaded07670741b17578a66df627282ce783fe5c98177b7049/titlecase-0.11.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07a55121104abc2f1503c29877d82b53", "sha256": "2ad96f67ad3573a9d07a1675d958abc1930df260e08512db2c821c39b2d5fab8" }, "downloads": -1, "filename": "titlecase-0.11.0.tar.gz", "has_sig": false, "md5_digest": "07a55121104abc2f1503c29877d82b53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6973, "upload_time": "2017-07-15T17:50:29", "url": "https://files.pythonhosted.org/packages/54/1c/4c1b5a4b29abc8f06d6e74d5fd6d25bbc7f66b5b659349d4a4acf26001db/titlecase-0.11.0.tar.gz" } ], "0.12.0": [ { "comment_text": "", "digests": { "md5": "78f9dd45a2c5b4dd046a6a574c45b264", "sha256": "95d643a0c08097c02933aced707adfe1c275c335019e8e514dea782a465c5b84" }, "downloads": -1, "filename": "titlecase-0.12.0-py3-none-any.whl", "has_sig": false, "md5_digest": "78f9dd45a2c5b4dd046a6a574c45b264", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9660, "upload_time": "2017-09-19T16:39:53", "url": "https://files.pythonhosted.org/packages/1c/6b/1af08c2d82cf3bad9caf764bca8c398c78f811d0638e5cb268952f45c917/titlecase-0.12.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "238c9655b9943801b1816046dcedb00e", "sha256": "84de7a97fb702c400e5ba11c6b30849944b39db12e20fbf4515a23c7538a0611" }, "downloads": -1, "filename": "titlecase-0.12.0.tar.gz", "has_sig": false, "md5_digest": "238c9655b9943801b1816046dcedb00e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7030, "upload_time": "2017-09-19T16:39:51", "url": "https://files.pythonhosted.org/packages/3b/78/5b9faa7b9288c9fa5a4fdb6989f5e675744511ab6cff0489a0c7744a4f6b/titlecase-0.12.0.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "14f634d2eecf70e275edee5965de0da1", "sha256": "677a801cd526a57cbee0d52869a4d7b56fb468a5e43d641b81311ce96273a073" }, "downloads": -1, "filename": "titlecase-0.4-py2.5.egg", "has_sig": true, "md5_digest": "14f634d2eecf70e275edee5965de0da1", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 7714, "upload_time": "2009-07-24T02:18:48", "url": "https://files.pythonhosted.org/packages/9d/2a/0a50a76aa20da6ac795bb004cd24d8351ca5cf6d3bbe27b0cbb499022248/titlecase-0.4-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "eb733fd570f814d05a45db27ffc75677", "sha256": "236deda003967f577a29deb9c2cb5ec908fc453f49aa4be28b2a6b9163bcb362" }, "downloads": -1, "filename": "titlecase-0.4-py2.6.egg", "has_sig": true, "md5_digest": "eb733fd570f814d05a45db27ffc75677", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 7713, "upload_time": "2009-07-24T02:18:18", "url": "https://files.pythonhosted.org/packages/0f/89/c41ae58bd5b66e29880b9bf0611c6879c18358458dd2187602ce2585a7b7/titlecase-0.4-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "e4727da02b4c15bcc4d5f30d3c77bb17", "sha256": "3a29b22841f01c676eececa852312f4b7feb14a51d542fbc3dc5099893aef24d" }, "downloads": -1, "filename": "titlecase-0.4.tar.gz", "has_sig": true, "md5_digest": "e4727da02b4c15bcc4d5f30d3c77bb17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3715, "upload_time": "2009-07-24T02:16:31", "url": "https://files.pythonhosted.org/packages/76/94/313fde50f0f6405c205cdeea8e586c831b13856929f1e3e439505b341927/titlecase-0.4.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "ac01279418589884a4ad389e8f438dc4", "sha256": "88be96f75c11d8831e871e8a9d738b050b767b3100241e1e0d25c00a3fb3631b" }, "downloads": -1, "filename": "titlecase-0.5.1-py2.6.egg", "has_sig": true, "md5_digest": "ac01279418589884a4ad389e8f438dc4", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 8665, "upload_time": "2010-07-09T01:19:38", "url": "https://files.pythonhosted.org/packages/74/c6/2f208cd12e9372db99b9bc1065d7e3330d9908a31445a84f65bfd9a0bf13/titlecase-0.5.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "ad1486272f93cfdf273b17396af696a5", "sha256": "62acc33a6f05ec4c9e51e0a128fdb5eb0eb352e724a4e53b0f3c5c09d171f1cc" }, "downloads": -1, "filename": "titlecase-0.5.1.tar.gz", "has_sig": true, "md5_digest": "ad1486272f93cfdf273b17396af696a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4144, "upload_time": "2010-07-09T01:19:37", "url": "https://files.pythonhosted.org/packages/df/4b/d6a70f67265370315da9fc1319483a22f46a2274220bb62c29149b9c0434/titlecase-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "26b5f58c739fde9e76d441c01b018de0", "sha256": "02693d8f1a8f5e18205a8a249e4d148f441ca3bb1c3e846c8b86106015898af4" }, "downloads": -1, "filename": "titlecase-0.6.0.tar.gz", "has_sig": false, "md5_digest": "26b5f58c739fde9e76d441c01b018de0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4410, "upload_time": "2014-04-25T22:06:51", "url": "https://files.pythonhosted.org/packages/52/d0/dcebee82699359bbc252c4681d37317ab59a5042fb1ab3f8fd746e163759/titlecase-0.6.0.tar.gz" } ], "0.7.0": [], "0.7.1": [ { "comment_text": "", "digests": { "md5": "52c88a7348b37ff893fb01483a21c64d", "sha256": "8f4e79c686229c66d550d7af17ddc66f5226e22e87344c590fae0d456666ba44" }, "downloads": -1, "filename": "titlecase-0.7.1.tar.gz", "has_sig": false, "md5_digest": "52c88a7348b37ff893fb01483a21c64d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4900, "upload_time": "2014-07-31T18:49:44", "url": "https://files.pythonhosted.org/packages/1d/51/cae69c62268d39062b49948fa82352e8ebe35e79ad07ba9c69b9b52f5742/titlecase-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "752613a96946ac2ff27bda56cde08253", "sha256": "e8240bd4bd3aef4c7e15493cedcbd01f3a2a628d960cae0a33cb54302add854e" }, "downloads": -1, "filename": "titlecase-0.7.2.macosx-10.9-x86_64.exe", "has_sig": false, "md5_digest": "752613a96946ac2ff27bda56cde08253", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 69552, "upload_time": "2014-11-24T21:43:55", "url": "https://files.pythonhosted.org/packages/e4/f9/4516e063841a135137aba330c8cd154bb0c28c3223a0b64f0a3f0529e324/titlecase-0.7.2.macosx-10.9-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "d771ad0ee4d812dd4c5d17596210f347", "sha256": "1979b829043b4c69f4e1b6d252e885803cb389b788a97628b67422fff6f801fb" }, "downloads": -1, "filename": "titlecase-0.7.2.tar.gz", "has_sig": false, "md5_digest": "d771ad0ee4d812dd4c5d17596210f347", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5128, "upload_time": "2014-11-24T21:43:52", "url": "https://files.pythonhosted.org/packages/50/d5/652480b64a3c188a69c13ddbb395e576d2e1552e470b98c2c317848517d6/titlecase-0.7.2.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "e23a74870f2be6f433fe6babb1b7e4be", "sha256": "a952f725dfb29085838ddc45198081593e03285b5f616ae02e9f3aea982d90cd" }, "downloads": -1, "filename": "titlecase-0.8.0.tar.gz", "has_sig": false, "md5_digest": "e23a74870f2be6f433fe6babb1b7e4be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5334, "upload_time": "2015-10-20T22:14:10", "url": "https://files.pythonhosted.org/packages/43/7d/68b7e922b8e54b19b10ac16db59c010a5eb3030f357b76d20a898c84a733/titlecase-0.8.0.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "29fce46d35e7f3eef6154af3e484c10b", "sha256": "4c32ca1fe7d52d59186a7c8f67ca3dc490c3c5a08af381ae27e95044ba9dbe0d" }, "downloads": -1, "filename": "titlecase-0.8.1.tar.gz", "has_sig": false, "md5_digest": "29fce46d35e7f3eef6154af3e484c10b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5533, "upload_time": "2016-01-10T23:48:52", "url": "https://files.pythonhosted.org/packages/35/39/54a1d320faf14b6f588909f8bca22055393dfd3c44c3794a6dd29030a212/titlecase-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "805c841708bc970d3fe3d19d0ed40050", "sha256": "1baac2ae4cf67b727361b40771f745ca537784b443780d7baed16bb4374425fe" }, "downloads": -1, "filename": "titlecase-0.8.2.tar.gz", "has_sig": false, "md5_digest": "805c841708bc970d3fe3d19d0ed40050", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5796, "upload_time": "2017-01-26T03:19:51", "url": "https://files.pythonhosted.org/packages/e0/23/a2e097bd0b6f394ca275e99fe162400cbed3e5daf7be9de7d17b0708ac7d/titlecase-0.8.2.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "e10fa88fee7223dfb774e9a5206f2a83", "sha256": "ba4362597c6659d777398bc0a6d2af6fef6dd657bdb4607b5430ced57ced2b69" }, "downloads": -1, "filename": "titlecase-0.9.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e10fa88fee7223dfb774e9a5206f2a83", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9151, "upload_time": "2017-03-08T20:26:38", "url": "https://files.pythonhosted.org/packages/a6/21/432ddc9015984b64162b673442c2a5238e5fcf2d8c7daee4d74259113be0/titlecase-0.9.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a9df33be58c2d069ccd3f55f8e3beb65", "sha256": "12509de9ef64cf75adb8580b7316b07c053432169f49183a406f109951eac0f1" }, "downloads": -1, "filename": "titlecase-0.9.0.tar.gz", "has_sig": false, "md5_digest": "a9df33be58c2d069ccd3f55f8e3beb65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6550, "upload_time": "2017-03-08T20:26:36", "url": "https://files.pythonhosted.org/packages/4e/cc/52e00952792e3d6e7f8550608b28d8557e845ed2b0076e4fde1e9b1f31f0/titlecase-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "78f9dd45a2c5b4dd046a6a574c45b264", "sha256": "95d643a0c08097c02933aced707adfe1c275c335019e8e514dea782a465c5b84" }, "downloads": -1, "filename": "titlecase-0.12.0-py3-none-any.whl", "has_sig": false, "md5_digest": "78f9dd45a2c5b4dd046a6a574c45b264", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9660, "upload_time": "2017-09-19T16:39:53", "url": "https://files.pythonhosted.org/packages/1c/6b/1af08c2d82cf3bad9caf764bca8c398c78f811d0638e5cb268952f45c917/titlecase-0.12.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "238c9655b9943801b1816046dcedb00e", "sha256": "84de7a97fb702c400e5ba11c6b30849944b39db12e20fbf4515a23c7538a0611" }, "downloads": -1, "filename": "titlecase-0.12.0.tar.gz", "has_sig": false, "md5_digest": "238c9655b9943801b1816046dcedb00e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7030, "upload_time": "2017-09-19T16:39:51", "url": "https://files.pythonhosted.org/packages/3b/78/5b9faa7b9288c9fa5a4fdb6989f5e675744511ab6cff0489a0c7744a4f6b/titlecase-0.12.0.tar.gz" } ] }