taulukko
Table (Finnish Taulukko) glued together to transform into hands-free living.
Installation
Preferred way to install is as usual (for testing or in isolation):
$ pipx install taulukko
For production use (well, ahem, ...) or within a virtual python env:
$ pip install taulukko
Example Usage
Extract tables from local HTML file
$ taulukko extract tests/fixtures/basic/2x2-table-w-th.html
extracting html tables from (tests/fixtures/basic/2x2-table-w-th.html) into markdown file below taulukko-md
markdown tree is below (taulukko-md)
$ cat tests/fixtures/basic/2x2-table-w-th.html
test</test></head>
a
b
c
d
$ cat taulukko-md/collected-tables.md
# test_html1
| a | b |
| --- | --- |
| c | d |
Version command
$ taulukko version
Table (Finnish Taulukko) glued together to transform into hands-free living. version 2021.12.2
General help
$ taulukko
Usage: taulukko [OPTIONS] COMMAND [ARGS]...
Table (Finnish Taulukko) glued together to transform into hands-free living.
Given an html file or URL the tool produces a markdown file of the tables
below `taulukko-md`.
Options:
-V, --version Display the taulukko version and exit
-h, --help Show this message and exit.
Commands:
extract Translate from zip file containing a tree of html and media...
version Display the taulukko version and exit
Help on extract command
$ taulukko extract --help
Usage: taulukko extract [OPTIONS] [SOURCE]
Translate from zip file containing a tree of html and media files to a
folder with markdown.
Arguments:
[SOURCE] [default: STDIN]
Options:
-i, --input
Path to input file (default is reading from
standard in)
-h, --help Show this message and exit.
Help on version command
Why not :-)
$ taulukko version --help
Usage: taulukko version [OPTIONS]
Display the taulukko version and exit
Options:
-h, --help Show this message and exit.
Status
Experimental.
Note: The default branch is default
.