mirror of
https://github.com/KevinMidboe/tableprint.git
synced 2025-10-29 18:00:16 +00:00
Updated README
This commit is contained in:
@@ -14,7 +14,7 @@ pip install tableprint
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## 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
|
```python
|
||||||
import tableprint
|
import tableprint
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@@ -25,10 +25,13 @@ headers = ['Column A', 'Column B', 'Column C']
|
|||||||
tableprint.table(data, headers)
|
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
|
## Dependencies
|
||||||
- Python 2.7 or 3.3+
|
- Python 2.7 or 3.3+
|
||||||
|
|
||||||
## Version
|
## Version
|
||||||
|
- 0.1.4 (Sept 28 2015) Added human readable string converter (hrtime)
|
||||||
- 0.1.0 (Feb 24 2015) Initial release
|
- 0.1.0 (Feb 24 2015) Initial release
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
3
setup.py
3
setup.py
@@ -6,7 +6,7 @@ setup(
|
|||||||
# Versions should comply with PEP440. For a discussion on single-sourcing
|
# Versions should comply with PEP440. For a discussion on single-sourcing
|
||||||
# the version across setup.py and the project code, see
|
# the version across setup.py and the project code, see
|
||||||
# https://packaging.python.org/en/latest/single_source_version.html
|
# 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',
|
description='Pretty ASCII printing of tabular data',
|
||||||
long_description='''Formatted 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.2',
|
||||||
'Programming Language :: Python :: 3.3',
|
'Programming Language :: Python :: 3.3',
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
|
'Programming Language :: Python :: 3.5',
|
||||||
],
|
],
|
||||||
|
|
||||||
# What does your project relate to?
|
# What does your project relate to?
|
||||||
|
|||||||
Reference in New Issue
Block a user