listwrap package

Module contents

Initialize listwrap package.

listwrap.align(strings: list[str], *, quote: str | None = '"', sep: str = ',', vertical: bool = True, trailsep: bool = True, indent: int = 4) str

Concatenate strings with optional vertical alignment, quoting, and indentation.

Parameters:
  • strings – The strings to concatenate.

  • quote – If provided, wrap each string in this character.

  • sep – The separator to use between strings.

  • vertical – Whether to concatenate the strings vertically (vs a single line, horizontally).

  • trailsep – Whether to include a trailing separator.

  • indent – The number of spaces to indent the output.