Format a simple (i.e. not nested) list into aligned columns.
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
0.3.4 10-28-10 -
- Work on packaging
- Remove pyflakes warnings
- Correct licensing information
0.3.2 03-08-09 - Ron Frankel -1 Release
- Relax restriction that array has to be string. Now is just something
we can call str() on each of the elements on.
- Correct bug in vertical alignment
- Add an optional initial line prefix string
0.3.1 01-10-09 - Sam Woodward Release
- Some small typos fixed.
0.3.0 01-05-09
- 0.2.0 had bad bugs - don't use.
Allow specifying right justification as well as left justification
0.2.0 12-31-08
- Add ability to run columns vertically
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
0.3.4 10-28-10 -
- Work on packaging
- Remove pyflakes warnings
- Correct licensing information
0.3.2 03-08-09 - Ron Frankel -1 Release
- Relax restriction that array has to be string. Now is just something
we can call str() on each of the elements on.
- Correct bug in vertical alignment
- Add an optional initial line prefix string
0.3.1 01-10-09 - Sam Woodward Release
- Some small typos fixed.
0.3.0 01-05-09
- 0.2.0 had bad bugs - don't use.
Allow specifying right justification as well as left justification
0.2.0 12-31-08
- Add ability to run columns vertically
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 Distribution
columnize-0.3.3.tar.gz
(7.4 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.3-py2.7.egg
(6.3 kB
view details)
columnize-0.3.3-py2.6.egg
(6.4 kB
view details)
File details
Details for the file columnize-0.3.3.tar.gz.
File metadata
- Download URL: columnize-0.3.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a48fa38705799d2eede54a615ae352885e018b23dc89fc9ebdeb401a212078e7
|
|
| MD5 |
c624f965cc2a2a1905e267120b5bd898
|
|
| BLAKE2b-256 |
35d683728ebbe0ba70365fb8df53db2ee6339e716fe725b3f6547dfe8ef80717
|
File details
Details for the file columnize-0.3.3-py2.7.egg.
File metadata
- Download URL: columnize-0.3.3-py2.7.egg
- Upload date:
- Size: 6.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d40d32bfd86107a04f2fe5d7587167db1147ecded086f48d727d3f0650665d
|
|
| MD5 |
7769734660bcf52e702c253196b9d333
|
|
| BLAKE2b-256 |
675ae9ecf346417dd5e0899943e60b29b70881a90f5c2c8da187d54194e2addf
|
File details
Details for the file columnize-0.3.3-py2.6.egg.
File metadata
- Download URL: columnize-0.3.3-py2.6.egg
- Upload date:
- Size: 6.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f77e41bdbeae353c67e32589f713f0f0e570eeb0ff7482b14a96badb8b040bf1
|
|
| MD5 |
af0d2dd8e54312c9f8b236f704157c10
|
|
| BLAKE2b-256 |
6e31d5114acb509820bb67c82ab90968ed5d7f5f417c7f3054fbbddc0207c4bd
|