Skip to main content

Module for text manipulation

Project description

https://img.shields.io/pypi/v/jaraco.text.svg https://img.shields.io/pypi/pyversions/jaraco.text.svg tests Ruff https://readthedocs.org/projects/jaracotext/badge/?version=latest https://img.shields.io/badge/skeleton-2025-informational https://tidelift.com/badges/package/pypi/jaraco.text

This package provides handy routines for dealing with text, such as wrapping, substitution, trimming, stripping, prefix and suffix removal, line continuation, indentation, comment processing, identifier processing, values parsing, case insensitive comparison, and more. See the docs (linked in the badge above) for the detailed documentation and examples.

Layouts

One of the features of this package is the layouts module, which provides a simple example of translating keystrokes from one keyboard layout to another:

echo qwerty | python -m jaraco.text.to-dvorak
',.pyf
echo  "',.pyf" | python -m jaraco.text.to-qwerty
qwerty

Newline Reporting

Need to know what newlines appear in a file?

$ python -m jaraco.text.show-newlines README.rst
newline is '\n'

For Enterprise

Available as part of the Tidelift Subscription.

This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.

Learn more.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaraco_text-4.2.0.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jaraco_text-4.2.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file jaraco_text-4.2.0.tar.gz.

File metadata

  • Download URL: jaraco_text-4.2.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for jaraco_text-4.2.0.tar.gz
Algorithm Hash digest
SHA256 194e386aa5b15a6616019df87a6b29c00fd3c9c8b0475731b64633ca7afd495b
MD5 651066dde8eb1d40523454fd88d280e5
BLAKE2b-256 f220f071dfb40f06fd0395167a40218c10adb7164635f65ebdafe45e0c714935

See more details on using hashes here.

File details

Details for the file jaraco_text-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: jaraco_text-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for jaraco_text-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 034408ef073f72de919124e9934a12acd50d10bd139bea47732620fa964b0144
MD5 145a656774ccea9b45b41942288232ee
BLAKE2b-256 396d628f347098059957987596123b3992120c673d17e8ce560185b1d6b88a27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page