smallparts package documentation home

smallparts.constants

Constants commonly used throughout this package.

smallparts.l10n

Localization subpackage.

smallparts.l10n.enumerations

Natural-language enumerations.

smallparts.l10n.languages

Definitions of supported languages.

smallparts.l10n.time_indications

Translations of time indications.

smallparts.markup

HTML and XML subpackage.

smallparts.markup.characters

HTML and XML characters handling.

smallparts.markup.elements

HTML and XML element definitions.

smallparts.markup.generators

HTML and XML element generator functions and classes.

smallparts.markup.parsers

HTML and XML parsers and entity resolvers.

smallparts.namespaces

Simple namespaces initialized like dicts.

smallparts.pipelines

Wrappers for command line interface pipelines.

smallparts.sequences

Functions for sequences.

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.time_display

Functions for displaying time