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:
- Documentation
- We're on pypi (so
pip install listwrap)
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| listwrap-0.0.3.tar.gz | 3.1 kB | Without provenance | Details for listwrap-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| listwrap-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for listwrap-0.0.3-py3-none-any.whl |
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
|
Security for listwrap 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.