Skip to main content

listwrap

Formatting lists of strings.

Use cases include subtasks of automatic config generation or any other highly structured context such as programmatically constructing human-readable SQL statements.

Links:

Examples

>>> from listwrap import align
>>> print(align(["a", "b", "c"]))
    "a",
    "b",
    "c",
>>> print(align(["a", "b", "c"], quote=None))
    a,
    b,
    c,
>>> print(align(["a", "b", "c"], indent=1))
 "a",
 "b",
 "c",
>>> print(align(["a", "b", "c"], indent=0, vertical=False))
"a","b","c",

Several formatting other options are supported; see the align method docstring.

Development

Create and activate a virtual env for dev ops:

git clone git@github.com:zkurtz/listwrap.git
cd listwrap
pip install uv
uv sync
source .venv/bin/activate

Metadata

Release files for listwrap 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for listwrap 0.0.3
File Size Uploaded
listwrap-0.0.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for listwrap 0.0.3
File Interpreter ABI Platform
listwrap-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / listwrap-0.0.3.tar.gz

Download URL listwrap-0.0.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9daf136f01c17062a97bf481ccefb77080e5d3de3fedf1e984e222d7288edbc4
BLAKE2b-256 checksum
How to use checksums
c86341e5f7dddfdae41fd120bb5a87b98430d411ca0c83e2443dc5b23b294224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.2

Release files / listwrap-0.0.3-py3-none-any.whl

Download URL listwrap-0.0.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c7ed02c8ca4f63af3599d4c82de84fef672f0b3ef30bc218c70f852a6b95b37
BLAKE2b-256 checksum
How to use checksums
419e12c965e06d14c4a9543d29412f21e413d00fda5c6e5ea2f5cb93e5835cbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page