jaraco.text
Module for text manipulation
What it is and what it does
jaraco.text is a collection of utility functions for everyday text manipulation tasks. It handles operations like wrapping, substitution, trimming whitespace, removing prefixes and suffixes, managing indentation, processing comments, and performing case-insensitive comparisons. The package also includes command-line tools for specialized tasks—for example, converting between keyboard layouts (QWERTY to Dvorak) and reporting newline characters in files.
The package is designed as a grab-bag of helpers rather than a focused framework. It depends on jaraco.context, jaraco.functools, more_itertools, and typer-slim, and targets Python 3.10+. It is actively maintained and carries no known security vulnerabilities. The MIT license permits both commercial and open-source use.
Use it for:
- Normalize and clean user-supplied text input in web forms or data pipelines.
- Convert between keyboard layouts programmatically for accessibility or input remapping.
- Inspect and report on newline conventions in text files for cross-platform compatibility.
- Perform case-insensitive string matching and comparison in configuration or search logic.
- Handle text indentation and line continuation in code generation or template rendering.
- Parse and process comment-heavy text formats or configuration files.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides utility functions for common text operations including wrapping, substitution, trimming, stripping, prefix/suffix removal, indentation, and case-insensitive comparison.
Yes. jaraco.text is a stable, actively maintained utility library with low install friction, no security vulnerabilities, and a permissive license. Install it if you need a collection of common text-processing helpers and are comfortable with a Python 3.10+ requirement. It is not a specialized tool—evaluate whether its specific functions match your use case rather than installing it as a general-purpose text library.
Install
jaraco-text on PyPI
pip
pip install jaraco-textuv
uv add jaraco-textpoetry
poetry add jaraco-textInstalling jaraco.text
Before you install
Low friction installation with a pure-Python wheel. Actively maintained as of 2026-07-12 with recent releases. Depends on four runtime packages (jaraco.context, jaraco.functools, more_itertools, typer-slim), all of which are established utilities.
License in practice
MIT license (permissive) allows use in commercial and proprietary projects with minimal restrictions—retain the license notice and you are free to modify and distribute.
Quickstart
pip install jaraco.text
from jaraco.text import trim
result = trim(' hello world ')
Requires Python 3.10 or later.
Verify before relying
- Whether the text processing functions handle Unicode and non-ASCII text correctly.
- Performance characteristics for large text inputs or bulk operations.
- Availability and completeness of the linked documentation.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — jaraco.context, jaraco.functools, more_itertools, typer-slim |
| Maintenance | actively maintained — 33 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,452,968/month — #3,057 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jaraco_text-4.3.0-py3-none-any.whl
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
jaraco.functoolsProvides additional functional programming…
permissive · top 1,000 on PyPI
jaraco.uiProvides command-line and user-interface…
permissive · top 15,000 on PyPI
jaraco.classesProvides utility functions for working with…
permissive · top 1,000 on PyPI
bigA collection of small utility functions and…
permissive · top 15,000 on PyPI
paragraphsProvides a single function that joins…
permissive · top 15,000 on PyPI
strip-hintsStrips type hints from Python source code while…
unclear · top 5,000 on PyPI
ansi2txtConverts ANSI escape sequences (color codes,…
unclear · top 15,000 on PyPI
sort-linesAlphabetizes lines in files based on…
permissive · top 15,000 on PyPI
pyjarowinklerComputes Jaro and Jaro-Winkler similarity and…
permissive · top 15,000 on PyPI
html-textExtracts plain text from HTML while filtering…
permissive · top 5,000 on PyPI