This is the template I use for my Python projects.
Project description
This is the template I use for my Python projects. This isn’t a real project.
Python 2.6, 2.7, PyPy, PyPy3, 3.3, and 3.4 supported on Linux
from terminaltables import AsciiTable
table_data = [
['Heading1', 'Heading2'],
['row1 column1', 'row1 column2'],
['row2 column1', 'row2 column2'],
['row3 column1', 'row3 column2']
]
table = AsciiTable(table_data)
print table.table
+--------------+--------------+
| Heading1 | Heading2 |
+--------------+--------------+
| row1 column1 | row1 column2 |
| row2 column1 | row2 column2 |
| row3 column1 | row3 column2 |
+--------------+--------------+
Changelog
This project adheres to Semantic Versioning.
2.1.0 - 2015-11-02
- Added
GitHub Flavored Markdown table by bcho: https://github.com/Robpol86/terminaltables/pull/12
Python 3.5 support (Linux/OS X and Windows).
2.0.0 - 2015-10-11
- Changed
Refactored code. No new features.
Breaking changes: UnixTable/WindowsTable/WindowsTableDouble moved. Use SingleTable/DoubleTable instead.
1.2.1 - 2015-09-03
- Fixed
CJK character width fixed by zqqf16 and bcho: https://github.com/Robpol86/terminaltables/pull/9
1.2.0 - 2015-05-31
- Added
Bottom row separator.
1.1.1 - 2014-11-03
- Fixed
Python 2.7 64-bit terminal width bug on Windows.
1.1.0 - 2014-11-02
- Added
Windows support.
Double-lined table.
1.0.2 - 2014-09-18
- Added
table_width and ok properties.
1.0.1 - 2014-09-12
- Added
Terminal width/height defaults for testing.
terminaltables.DEFAULT_TERMINAL_WIDTH
terminaltables.DEFAULT_TERMINAL_HEIGHT
1.0.0 - 2014-09-11
Initial release.