textutils
A lightweight Python library for common text-processing operations.
Features
- Word counting: Count total words with whitespace handling.
- Character counting: Count the number of characters in a string.
- Text capitalization: Capitalize string characters.
- Text reversal: Reverse strings.
- Palindrome detection: Check whether a string reads identically backwards and forwards (case-insensitive).
Installation
Install via pip:
pip install textutils-louaysmce
For development:
pip install -e .[dev]
Usage
from textutils import (
capitalize_words,
character_count,
is_palindrome,
reverse,
word_count,
)
# Count words
print(word_count("Hello Open Source!")) # 3
# Count characters
print(character_count("Inazuma Eleven")) # 14
# Capitalize text
print(capitalize_words("inazuma")) # INAZUMA
# Reverse text
print(reverse("hello")) # olleh
# Check palindrome
print(is_palindrome("Radar")) # True
Running Tests
Run the test suite with coverage:
pytest --cov=textutils --cov-report=term-missing
Contributing
Contributions are welcome!
- Fork the repository.
- Create a new branch (
git switch -c feature/my-featureorfix/my-fix). - Commit your changes with clear messages.
- Ensure tests and pre-commit checks pass (
pre-commit run --all-files). - Open a Pull Request.
License
This project is licensed under the MIT License. See LICENSE for details.
Metadata
Release files for textutils-louaysmce 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| textutils_louaysmce-0.1.0.tar.gz | 5.5 kB | With provenance | Details for textutils_louaysmce-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textutils_louaysmce-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for textutils_louaysmce-0.1.0-py3-none-any.whl |
Total release size: 10.6 kB
Release files / textutils_louaysmce-0.1.0.tar.gz
| Download URL | textutils_louaysmce-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1844c6eec213ff8467ce2c18c172745e495c6d000a9e59b57daee34783f4c3b
|
|
BLAKE2b-256 checksum How to use checksums |
253b90d4006d054e62a7e2868b58dd146485be474ca87bddefbd48daafef9300
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / textutils_louaysmce-0.1.0-py3-none-any.whl
| Download URL | textutils_louaysmce-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45d7fa33b7b46bda5b45b254f96937fddde942593e061ed221c719ca833992c6
|
|
BLAKE2b-256 checksum How to use checksums |
ddd41a995fa24eb9859803791314bb9fc8e014a3219ed82e563e7ce5cf872e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for textutils-louaysmce 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for textutils_louaysmce-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.