textutils
A lightweight Python library providing simple utilities for common text-processing operations.
Requires Python 3.12 or later.
Features
word_count(text): Count the number of words in a text.character_count(text, include_spaces=True): Count characters, optionally excluding spaces.reverse(text): Reverse the characters in a text.capitalize_words(text): Capitalize each word in a text.snake_case(text): Convert whitespace-separated words to snake case.word_frequency(text): Count normalized words after punctuation and common stop-word filtering.
Installation
The first release is being prepared. Once it is published, install the package from PyPI with:
python -m pip install textutils-clovistiemtore
To install the project locally in editable mode with its development tools:
python -m pip install -e ".[dev]"
python -m pip install pre-commit
Usage
from textutils import (
capitalize_words,
character_count,
reverse,
snake_case,
word_count,
word_frequency,
)
print(word_count("Hello Open Source!"))
print(character_count("Hello Open Source!", include_spaces=False))
print(reverse("Hello Open Source!"))
print(capitalize_words("hello open source!"))
print(snake_case("Hello Open Source!"))
print(word_frequency("Python is great. Python is simple."))
Testing
Run the test suite with line and branch coverage:
python -m pytest
Run the formatting, lint, and pre-commit checks:
python -m black --check .
python -m ruff check .
pre-commit run --all-files
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Metadata
Release files for textutils-clovistiemtore 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_clovistiemtore-0.1.0.tar.gz | 6.1 kB | With provenance | Details for textutils_clovistiemtore-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| textutils_clovistiemtore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for textutils_clovistiemtore-0.1.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / textutils_clovistiemtore-0.1.0.tar.gz
| Download URL | textutils_clovistiemtore-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
253769eed041d672132e263677fe6d8b3a1bbf2427df647787f9d2aa622bf88b
|
|
BLAKE2b-256 checksum How to use checksums |
e3b485871854b6fa71b5564b33897e872709ddf5a229f92636f2c566ec9069bb
|
| 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_clovistiemtore-0.1.0-py3-none-any.whl
| Download URL | textutils_clovistiemtore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd19a10a8b60b3ff3c1fa7f52d69d3152d8b2e08165b1316eea43237b4589055
|
|
BLAKE2b-256 checksum How to use checksums |
cbccb737fa16a0ad8a8881c5429d1162075287ba1bdbd0c0731f8d46de610a7b
|
| 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-clovistiemtore 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_clovistiemtore-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.