snick¶
Text manipulation gadgets for indentation
Created: 2020-11-23 · Last Released: 2026-04-28 · Version: 3.2.0

Handy gadgets for taming indented text
A small collection of practical utilities for working with indented strings and text formatting:
- Dedent triple-quoted strings without giving up indented code
- Build multi-line output line by line with
Conjoiner - Format data structures like
pprint, but withjson.dumps-style indentation and trailing commas - Strip ANSI codes and stray whitespace from terminal output
- Wrap and indent text blocks for logs and reports
Built on the Python standard library — nothing extra to install.
Quickstart¶
Requirements¶
- Python 3.10 or greater
Installation¶
Install the latest release from PyPI:
Quick taste¶
Running this gives:
To learn about all the features, see the documentation.
Try the demo¶
The fastest way to see snick in action is to run the interactive demo. No install required:
The demo walks through every feature, one function at a time. Each step shows the source code and its output, then asks whether to continue.