Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

capitalizr changes the case of first letter of any word (lowercase to uppercase)

Project Description

capitalizr - It’s a utility that lets you change the case (lowercase to uppercase the letter of the words) words in a file, leaving the words which have 3 or less letters. The file looks pretty if it has all words in capitalcase in it.

why not sed?

  • because capitalizr is easy to use, just damn simple
  • sed doesn’t takes input from stdin, it just works on piping.

Install

The one and only requirement is Python, if you are on any variant of UNIX (e.g. Linux, *BSD, Mac etc) then you have a good luck, else download it. The simplest installation (for UNIX) is download/clone the archive, extract it cd to it and run the setup:

$ pip install capitalizr

Refer to INSTALL file for more instruction related to installation.

Usages

After following the instructions in INSTALL file, you should be able to type capitalizr in terminal. Type capitalizr followed by the filename and the output will be on the screen:

$ capitalizr inputfile.txt

Pipe input to it:

$ cat inputfile.txt | capitalizr -

Input from stdin:

$ capitalizr -
the quick brown fox jumps over the lazy dog
^D
the Quick Brown fox Jumps Over the Lazy dog

You can write the output into file by passing -o followed by output filename, and the output will be on a file named outputfile.txt:

$ capitalizr inputfile.txt -o outputfile.txt

Override the default length of words to be escaped. The default it 3:

$ capitalizr -t 1 inputfile.txt

Bugs? Suggestions? Questions?

Questions approaching in your mind? Found any bugs? Have any suggestions? Don’t hesitate to post it at: https://github.com/santosh/capitalizr/issues

To do

These might seem silly ;) Here are implementation I want, priority wise:

  • Android App
  • Implement GUI
  • Put it in repository list of Ubuntu, Fedora etc.
  • Deployment with Debian package and Windows installer.
  • ~~Manual page (And the installation of it)~~ ✔

See also the sandbox branch of the repository.

Contributors

Feel free to contribute, just fork, clone, do your changes, push and send me a pull request.

Here are the contributors:

Release History

Release History

This version
History Node

1.02.00

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
capitalizr-1.02.00.tar.bz2 (6.2 kB) Copy SHA256 Checksum SHA256 Source Apr 13, 2013
capitalizr-1.02.00.tar.gz (5.8 kB) Copy SHA256 Checksum SHA256 Source Apr 13, 2013
capitalizr-1.02.00.zip (9.3 kB) Copy SHA256 Checksum SHA256 Source Apr 13, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting