command line tool to generate html tables with embedded audios and images
Project description
htmltable cli
Command line tool to convert lists to html tables with embedded audios and images.
Installation
From pypi
pip install htmltable-cli
From source
pip install git+https://github.com/FarisHijazi/htmltable
Usage
$ python htmltable.py --help
usage:
Command line tool to convert lists to html tables with embedded audios and images.
Separate columns with ,
The easiest way to use it is to put each column in a folder and then pass it using a wildcard *
[-h] [-b] [-x] [-a] data [data ...]
positional arguments:
data input table data. Format: columnname1 item1 item2 item3
, columname2 item1 item2 item3 ...
optional arguments:
-h, --help show this help message and exit
-b, --base64
-x, --index add an index column
-a, --infer_columns (A)uto infer columnnames from parent directories
Assuming filestructure:
.
├── col1
│ ├── audio.wav
| ├ ...
│ └── image.png
├── col2
│ ├── audio.wav
| ├ ...
│ └── image.jpg
└── col3
├── audio.wav
├ ...
└── image.png
- Separate columns with
,
- The easiest way to use it is to put each column in a folder and then pass it using a wildcard
*
Examples
specifying file paths explicitly
python htmltable.py col1 col1/1.wav col1/2.wav col1/3.wav , \
col2 col2/1.wav col2/2.wav col2/3.wav , \
col3 col3/1.wav col3/2.wav col3/3.wav --base64 --index > output.html
Specifying file paths implicitly using *
python htmltable.py col1 col1/*.wav , \
col2 col2/*.wav , \
col3 col3/*.wav --base64 --index > output.html
(A)uto infer columnnames from parent directories (-a
or --infer_columns
).
python htmltable.py col1/*.wav , \
col2/*.wav , \
col3/*.wav --infer_columns --base64 --index > output.html
(you don't actually have to organize your arguments in new lines :p)
TODO
- add support for videos
Known issues
-
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
run
pip install llvmlite==0.36.0 --ignore-installed
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
htmltable-cli-0.1.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for htmltable_cli-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ea74aff69695c8f8813602f65ba327f9baf63f3aa74cee9465613dc49dd11f8 |
|
MD5 | 692d6db4b289757fb7f432ac3c25f992 |
|
BLAKE2b-256 | 741ce30e1bd3ab1d22c651e91dd4f8f8470d864cfb46c9723f3598f8f264db51 |