Simple commandline utility to convert CSV files to searchable and sortable HTML table.
Project description
CSVtoTable
Simple command-line utility to convert CSV files to searchable and sortable HTML table. Supports large datasets and horizontal scrolling for large number of columns.
DISCLAIMER: This is NOT an official version, nor am I affiliated with the original creator Vivek R @vividvilla https://github.com/vividvilla (Upstream Author) This version is mostly for me, if you wanna use it too go ahead but I give no promises of function. If you notice any errors or issues please tell me!
Demo
Here is a demo of sample csv file converted to HTML table.
(You can use https://NanashiTheNameless.github.io/csvtotable/sample/index.html to see all the example HTML pages.)
Installation
Get the Latest
python -m pip install --upgrade 'CSVtoTableNameless @ git+https://github.com/NanashiTheNameless/csvtotable@master'
Or get from PyPi (not recommended, may be out of date)
pip install --upgrade CSVtoTableNameless
Get started
csvtotable --help
Convert data.csv file to data.html file
csvtotable data.csv data.html
Open output file in a web browser instead of writing to a file
csvtotable data.csv --serve
Options
Usage: csvtotable [OPTIONS] INPUT_FILE [OUTPUT_FILE]
-c, -t, --caption, --title TEXT
Table caption and HTML title
-d, --delimiter TEXT CSV delimiter
-q, --quotechar TEXT String used to quote fields containing
special characters
-dl, --display-length INTEGER Number of rows to show by default. Defaults
to -1 (show all rows)
-o, --overwrite Overwrite the output file if exists.
-s, --serve Open output html in browser instead of
writing to file.
-h, --height TEXT Table height in px or in %.
-p, --pagination Enable/disable table pagination.
-vs, --virtual-scroll INTEGER Number of rows after which virtual scroll is
enabled.Set it to -1 to disable and 0 to
always enable.
-nh, --no-header Disable displaying first row as headers.
-e, --export Enable filtered rows export options.
-eo, --export-options [copy|csv|json|print]
Enable specific export options. By default
shows all. For multiple options use -eo flag
multiple times. For ex. -eo json -eo csv
-ps, --preserve-sort Preserve the default sorting order (not
using this flag will cause table to be
sorted by first column).
--help Show this message and exit.
Credits
Libraries used
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file csvtotablenameless-2.4.1.tar.gz.
File metadata
- Download URL: csvtotablenameless-2.4.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d26f32a9d8b486bbcc2cb6de201f1193bdb3943d0c6ff21a127778633b7952b
|
|
| MD5 |
37661759e3baa3e41f67d3f20381d75b
|
|
| BLAKE2b-256 |
fe61839899b1875ea0ab6feaf7747dfe2fd25af0d8a0f6a8efdd55bb70dea23b
|
File details
Details for the file csvtotablenameless-2.4.1-py2.py3-none-any.whl.
File metadata
- Download URL: csvtotablenameless-2.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d067e7550a91665e9fdc1d760805c8b7c3191d95e5075560111265d6c6bbd90
|
|
| MD5 |
921982e32b4e89ce83944e27e417caa5
|
|
| BLAKE2b-256 |
253bba094d4bdfd7acd3720a8ba85dc6c9c772227ca9af6f0ad3492482252aa6
|