Updated README

This commit is contained in:
Niru Maheswaranathan
2015-09-28 14:26:17 -07:00
parent 57ff47a196
commit f39b493557
2 changed files with 6 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ pip install tableprint
```
## Usage
The `tableprint.table()` function takes in a matrix of data, a list of headers, and an optional dictionary of parameters. To print a dataset consisting of 10 rows of 3 different columns:
The `tableprint.table` function takes in a matrix of data, a list of headers, and an optional dictionary of parameters. To print a dataset consisting of 10 rows of 3 different columns:
```python
import tableprint
import numpy as np
@@ -25,10 +25,13 @@ headers = ['Column A', 'Column B', 'Column C']
tableprint.table(data, headers)
```
The `header` and `row` functions allow you to print just the header or just a row of data, respectively, which is useful for continuously updating a table during a long-running computation.
## Dependencies
- Python 2.7 or 3.3+
## Version
- 0.1.4 (Sept 28 2015) Added human readable string converter (hrtime)
- 0.1.0 (Feb 24 2015) Initial release
## License

View File

@@ -6,7 +6,7 @@ setup(
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.1.3',
version='0.1.4',
description='Pretty ASCII printing of tabular data',
long_description='''Formatted ASCII printing of tabular data''',
@@ -43,6 +43,7 @@ setup(
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
# What does your project relate to?