Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
v1.1.0: Windows and DoubleTable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Nov 3, 2014
1 parent 011e181 commit 5b1c409
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

Easily draw tables in terminal/console applications from a list of lists of strings. Supports multi-line rows.

`terminaltables` is supported on Python 2.6, 2.7, 3.3, and 3.4.
* Python 2.6, 2.7, 3.3, and 3.4 supported on Linux, OS X, and Cygwin.
* Python 2.7, 3.3, and 3.4 supported on Windows (both 32 and 64 bit versions of Python).

Tested on Windows XP and Windows 10 technical preview.

[![Build Status Windows](https://ci.appveyor.com/api/projects/status/krq10akm1qxyd9d6/branch/master?svg=true)]
(https://ci.appveyor.com/project/Robpol86/terminaltables)
[![Build Status](https://travis-ci.org/Robpol86/terminaltables.svg?branch=master)]
(https://travis-ci.org/Robpol86/terminaltables)
[![Coverage Status](https://img.shields.io/coveralls/Robpol86/terminaltables.svg)]
Expand Down Expand Up @@ -33,8 +38,9 @@ Source code for examples: [example1.py](example1.py), [example2.py](example2.py)
## Usage

The below usage information is for `AsciiTable` which uses simple ASCII characters for the table (e.g. -+|). Use
`UnixTable` for [box drawing characters](http://en.wikipedia.org/wiki/Box-drawing_character) instead. `UnixTable` has
the same methods and properties as `AsciiTable`.
`SingleTable` for [box drawing characters](http://en.wikipedia.org/wiki/Box-drawing_character) instead. You may also use
`DoubleTable` for double-lined box characters. All three tables have the same methods and properties and work on all
platforms.

### Simple Usage

Expand Down Expand Up @@ -79,7 +85,7 @@ string lengths correctly.
### Class Attributes

You can instantiate with `AsciiTable(table_data)` or `AsciiTable(table_data, 'Table Title')`. These are available after
instantiating AsciiTable or UnixTable.
instantiating any table class.

Name | Description/Notes
:--- | :----------------
Expand Down Expand Up @@ -116,6 +122,11 @@ Name | Description/Notes

## Changelog

#### 1.1.0

* Added Windows support.
* Added double-lined table.

#### 1.0.2

* Added `table_width` and `ok` properties.
Expand Down
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion terminaltables.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| Carrot | vegetable |
+--------+-----------+
Use SingleTable or DoubleWindowsSingleUnixTable instead of AsciiTable for box-drawing characters instead.
Use SingleTable or DoubleTable instead of AsciiTable for box-drawing characters instead.
https://github.com/Robpol86/terminaltables
https://pypi.python.org/pypi/terminaltables
Expand Down

0 comments on commit 5b1c409

Please sign in to comment.