smallparts.text

Text subpackage.

smallparts.text.join

Functions for easily joining strings

smallparts.text.reduce

Classes, functions and rules for reducing unicode text to ASCII.
Although you would guess this should not be necessary anymore in the 2020s, there are still a few use cases.

smallparts.text.split

One wrapper function for str.splitlines() for preserving a trailing line break.

smallparts.text.templates

One class enhancing the String.Template class.

smallparts.text.transcode

Functions for transcoding text between various encodings.

smallparts.text.translate

Simple text transliterations.


(smallparts docs home)