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
Release files for texttransform 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| texttransform-0.2.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| texttransform-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / texttransform-0.2.tar.gz
| Download URL | texttransform-0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5957d451403666240af69640fb239994c3da9d0b74d8a38650149b1ea8898c3a
|
|
BLAKE2b-256 checksum How to use checksums |
7aeaa2f5eb17eb1002a282e709ce5db20722765217ee4f4332fd5ec3b9f50392
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.4
|
Release files / texttransform-0.2-py3-none-any.whl
| Download URL | texttransform-0.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a21b40aa899fea59bb50afbd8ea78a37ef67682be44954406fc361a5209ec901
|
|
BLAKE2b-256 checksum How to use checksums |
e941ee9badc36244f0c3b99a15730da6838f54a9ef1bae51f8b98d9fb635c0c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.4
|