A tool to convert sentences between uppercase and lowercase and to format sentences correctly.
Project description
texttransform
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.
Features
- Convert: Change text to uppercase or lowercase.
- Format: Properly capitalize sentences and handle ellipses.
Installation
You can install texttransform using pip from the local source. Navigate to the directory containing setup.py and run:
pip install .
Usage
After installation, you can use the texttransform command-line tool to perform various text transformations.
Convert to Uppercase
texttransform -upper "your text here"
Convert to Lowercase
texttransform -lower "YOUR TEXT HERE"
Format Sentences
texttransform -sentence "your text here. another sentence here."
Example
texttransform -sentence "hello. world. this is an example..."
Output:
Hello. World. This is an example...
Running Tests
To run the tests for texttransform, use:
python -m unittest text_transform_test.py
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Genevieve - GitHub Profile
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file texttransform-0.2.tar.gz.
File metadata
- Download URL: texttransform-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5957d451403666240af69640fb239994c3da9d0b74d8a38650149b1ea8898c3a
|
|
| MD5 |
ac47108a3ffd0767d096d010e99bae76
|
|
| BLAKE2b-256 |
7aeaa2f5eb17eb1002a282e709ce5db20722765217ee4f4332fd5ec3b9f50392
|
File details
Details for the file texttransform-0.2-py3-none-any.whl.
File metadata
- Download URL: texttransform-0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a21b40aa899fea59bb50afbd8ea78a37ef67682be44954406fc361a5209ec901
|
|
| MD5 |
84677bc5be779f6e607522db64c03d82
|
|
| BLAKE2b-256 |
e941ee9badc36244f0c3b99a15730da6838f54a9ef1bae51f8b98d9fb635c0c3
|