@@ -25,6 +25,17 @@ To install the Python library and the command line utility, run::
25
25
26
26
pip install tabulate
27
27
28
+ The command line utility will be installed as ``tabulate `` to ``bin `` on Linux
29
+ (e.g. ``/usr/bin ``); or as ``tabulate.exe `` to ``Scripts `` in your Python
30
+ installation on Windows (e.g. ``C:\Python27\Scripts\tabulate.exe ``).
31
+
32
+ You may consider installing the library only for the current user::
33
+
34
+ pip install tabulate --user
35
+
36
+ In this case the command line utility will be installed to ``~/.local/bin/tabulate ``
37
+ on Linux and to ``%APPDATA%\Python\Scripts\tabulate.exe `` on Windows.
38
+
28
39
To install just the library on Unix-like operating systems::
29
40
30
41
TABULATE_INSTALL=lib-only pip install tabulate
@@ -43,8 +54,8 @@ Build status
43
54
:target: https://drone.io/bitbucket.org/astanin/python-tabulate/latest
44
55
45
56
46
- Usage
47
- -----
57
+ Library usage
58
+ -------------
48
59
49
60
The module provides just one function, ``tabulate ``, which takes a
50
61
list of lists or another tabular data type as the first argument,
@@ -343,6 +354,28 @@ columns of decimal numbers. Use ``floatfmt`` named argument::
343
354
-- ------
344
355
345
356
357
+ Usage of the command line utility
358
+ ---------------------------------
359
+
360
+ ::
361
+
362
+ Usage: tabulate [options] [FILE ...]
363
+
364
+ FILE a filename of the file with tabular data;
365
+ if "-" or missing, read data from stdin.
366
+
367
+ Options:
368
+
369
+ -h, --help show this message
370
+ -1, --header use the first row of data as a table header
371
+ -o FILE, --output FILE print table to FILE (default: stdout)
372
+ -s REGEXP, --sep REGEXP use a custom column separator (default: whitespace)
373
+ -f FMT, --format FMT set output table format; supported formats:
374
+ plain, simple, grid, fancy_grid, pipe, orgtbl,
375
+ rst, mediawiki, html, latex, latex_booktabs, tsv
376
+ (default: simple)
377
+
378
+
346
379
Performance considerations
347
380
--------------------------
348
381
0 commit comments