texttransform is a simple Python tool designed to:
- Convert sentences to uppercase or lowercase.
- Properly format sentences by capitalizing the first letter of each sentence and handling ellipses correctly.
This tool was developed as a learning exercise to explore how to package Python scripts into downloadable executables that others can use. Additionally, it’s a handy solution for those times when I accidentally type entire paragraphs in uppercase before realizing I've made a major text blunder.
You can find the package on PyPI here.
- Convert: Change text to uppercase or lowercase.
- Format: Properly capitalize sentences and handle ellipses.
You can install texttransform in two ways:
To install the latest version of texttransform from PyPI, use the following command:
pip install texttransformYou can find the package on PyPI here.
To install texttransform from the local source, follow these steps:
- Navigate to the directory containing the setup.py file:
cd path/to/directory- Run the following command to install the package:
pip install .This will install the package from the local source directory.
After installation, you can use the texttransform command-line tool to perform various text transformations.
texttransform -upper "your text here"texttransform -lower "YOUR TEXT HERE"texttransform -sentence "your text here. another sentence here."texttransform -sentence "hello. world. this is an example..."Hello. World. This is an example...To run the tests for texttransform, use:
python -m unittest text_transform_test.pyThis project is licensed under the MIT License. See the LICENSE file for details.
Genevieve - GitHub Profile