skillfed

jaraco.text

Module for text manipulation

jaraco-text v4.3.0 2.5M downloads/30d#3,057 on PyPI18
Permissive license MIT Active released

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-text

uv

uv add jaraco-text

poetry

poetry add jaraco-text

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only

Tags

text manipulation utilitiesstring processing helperstext wrapping and trimmingprefix suffix removaltext formatting utilitiescase insensitive comparisonline continuation handlingcomment processing
text-utilitiesstring-processing

More Text Processing packages