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.3.1.zip
(10.0 kB
view details)
columnize-0.3.1.tar.gz
(5.8 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.3.1-py2.6.egg
(6.1 kB
view details)
columnize-0.3.1-py2.5.egg
(6.1 kB
view details)
File details
Details for the file columnize-0.3.1.zip.
File metadata
- Download URL: columnize-0.3.1.zip
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
980b947f810e843ef5c7e7adca22519af8cd8e51cff5566813acc8d4c8400692
|
|
| MD5 |
86e2954ec2cf34572d845236ed3c0b57
|
|
| BLAKE2b-256 |
3ec292c112d3c1247a73ecb92d00d4f9348a3f39c8232da87d13b1e245eaf68f
|
File details
Details for the file columnize-0.3.1.tar.gz.
File metadata
- Download URL: columnize-0.3.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
124e75bb90296e1b00aa7a8f3c8823c0188585a142efba844b9d1b5227d69f74
|
|
| MD5 |
108c631c925f6c6ceb71ccd36b9b36dd
|
|
| BLAKE2b-256 |
c692bc5067c9fc3b22c44dc0382e496ad0e69b8f117775d58ba7a63b1b0e7afb
|
File details
Details for the file columnize-0.3.1-py2.6.egg.
File metadata
- Download URL: columnize-0.3.1-py2.6.egg
- Upload date:
- Size: 6.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b4cbd8226d7c30a25d5db8b5b2ab40d68393cb71195d2d351b92b6f74524d61
|
|
| MD5 |
e4c9d9cb3c703c010155851f92956e3a
|
|
| BLAKE2b-256 |
f9fa247c7da87b9e1db9f5299e32ecb2c3639ac29d6073fe5aa5ba1b128f2119
|
File details
Details for the file columnize-0.3.1-py2.5.egg.
File metadata
- Download URL: columnize-0.3.1-py2.5.egg
- Upload date:
- Size: 6.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aec803a13a59df6126b2e168480f5f26fd4cbdbcbf6a334f3e52bffd024e44c
|
|
| MD5 |
8679fe9353b61c8d154d570c4f3f0dc2
|
|
| BLAKE2b-256 |
72cc8f8b50d54c0e8d97ea43507bdea02a33725e39f5fee9236f466f54d57b90
|