Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/__pycolumnize
https://github.com/msabramo/__pycolumnize
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/msabramo/__pycolumnize
- Owner: msabramo
- License: other
- Created: 2015-01-06T05:49:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-06T05:54:49.000Z (almost 10 years ago)
- Last Synced: 2024-05-09T20:37:42.877Z (8 months ago)
- Language: Python
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.txt
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
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