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-2026-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.3.0.tar.gz (20.7 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.3.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jaraco_text-4.3.0.tar.gz
Algorithm Hash digest
SHA256 ddd5eb6259d0701e08cb642c8d6b63bcc73947d03df9239ea67bbef911b3e4e1
MD5 23d91c6899e89f3bb1bb6f9148302b92
BLAKE2b-256 be8cc74f1107719400477289d99cd2c0b5b7809a45f60acecfb5ef961c3533c8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jaraco_text-4.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07a06a9eaf8b7eee54f2fec816565ef1eec5aa78fc81e4f1c3131ad09ff45a9a
MD5 5a87c91905a3374357ec5b2fd080ea21
BLAKE2b-256 d24fcd038114e8ed88682eabe3123e598f8d236ab0f6b8c642d522438bfba175

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