Format a list of strings into a single compact string
Project description
Return a list of strings as a compact set of columns arranged
horizontally or vertically.
For example, for a line width of 4 characters (arranged vertically):
['1', '2,', '3', '4'] => '1 3\n2 4\n'
or arranged horizontally:
['1', '2,', '3', '4'] => '1 2\n3 4\n'
Each column is only as wide as necessary. By default, columns are
separated by two spaces - one was not legible enough. Set "colsep"
to adjust the string separate columns. Set `displaywidth' to set
the line width.
Normally, consecutive items go down from the top to bottom from
the left-most column to the right-most. If +arrange_vertical+ is
set false, consecutive items will go across, left to right, top to
bottom.
Adapted from the routine of the same name inside cmd.py
horizontally or vertically.
For example, for a line width of 4 characters (arranged vertically):
['1', '2,', '3', '4'] => '1 3\n2 4\n'
or arranged horizontally:
['1', '2,', '3', '4'] => '1 2\n3 4\n'
Each column is only as wide as necessary. By default, columns are
separated by two spaces - one was not legible enough. Set "colsep"
to adjust the string separate columns. Set `displaywidth' to set
the line width.
Normally, consecutive items go down from the top to bottom from
the left-most column to the right-most. If +arrange_vertical+ is
set false, consecutive items will go across, left to right, top to
bottom.
Adapted from the routine of the same name inside cmd.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
columnize-0.2.0.zip
(9.0 kB
view details)
columnize-0.2.0.tar.gz
(3.7 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
columnize-0.2.0-py2.6.egg
(5.1 kB
view details)
columnize-0.2.0-py2.5.egg
(5.1 kB
view details)
File details
Details for the file columnize-0.2.0.zip.
File metadata
- Download URL: columnize-0.2.0.zip
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c71bfd6b61486f875a78b4a1ca087bc99d3c1f34e22af3d85692da49a7034d31
|
|
| MD5 |
d64ad23cc3d157fdd6c705b1d504544f
|
|
| BLAKE2b-256 |
1d126da2be4137a1b07456b020218124e29801f6ec225536a2279d2f6968f44f
|
File details
Details for the file columnize-0.2.0.tar.gz.
File metadata
- Download URL: columnize-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3525bb3126728ac8b4c01072a3b206cf78201674baf53b1964e0bdf5fe2d9d8f
|
|
| MD5 |
dfd9891d2758d94b32a66c8915a9915d
|
|
| BLAKE2b-256 |
4d2fa420b8207582e96a8c07ebf52dbfba021cfbb593d3d5dfa11c121d15fa59
|
File details
Details for the file columnize-0.2.0-py2.6.egg.
File metadata
- Download URL: columnize-0.2.0-py2.6.egg
- Upload date:
- Size: 5.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cc418d534e3a931aa5c2c3676b4e16338d2473d9f033083ad7cae6388f7de02
|
|
| MD5 |
f86e380e6ce97d07d8947fbac500fde4
|
|
| BLAKE2b-256 |
3b4843d6c225113d43e48736df665558175b59f68b3497e8fc1f2c4d998c9267
|
File details
Details for the file columnize-0.2.0-py2.5.egg.
File metadata
- Download URL: columnize-0.2.0-py2.5.egg
- Upload date:
- Size: 5.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb514b7698a32a5946e24e31ae9ae71074ef6d9f4fc7ef170251ee19c44b4ad
|
|
| MD5 |
6f03e9eeefdcfcd8d36349a079fdbb38
|
|
| BLAKE2b-256 |
f5db268e684a28aa734a410d1496ba9f8badf0d8d26f0bd079338a2ef3b759ef
|