Table (Finnish Taulukko) glued together to transform into hands-free living.
Project description
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
<html><head><title>test</test></head><body><table><tr><th>a</th><th>b</th></tr><tr><td>c</td><td>d</td></tr></table></body></html>
$ 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 <sourcepath> 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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
taulukko-2021.12.2.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for taulukko-2021.12.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48961f9067b255a89fbf639f4f0927047e66219e54ef63f9df37e483bbaf9969 |
|
MD5 | fa980c740af177205e886ba5ec79d43f |
|
BLAKE2b-256 | 50e3239cfd1dc823bea5b86c9ed31ae9382f7998d747b4d1930a17975c81598e |