Text Processing Services
The modules described in this chapter provide a wide range of string manipulation operations and other text processing services.
The codecs
module described under Binary Data Services is also highly relevant to text processing. In addition, see the documentation for Python’s built-in string type in Text Sequence Type — str.
-
string
— Common string operations -
re
— Regular expression operations -
difflib
— Helpers for computing deltas textwrap
— Text wrapping and fillingunicodedata
— Unicode Databasestringprep
— Internet String Preparation-
readline
— GNU readline interface -
rlcompleter
— Completion function for GNU readline
© 2001–2021 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.10/library/text.html