Skip to main content

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

All Major Contributors

All Other Contributors

Libraries used

Datatables

jQuery

JSZip

PDFMake

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csvtotablenameless-2.6.0.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csvtotablenameless-2.6.0.1-py2.py3-none-any.whl (11.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file csvtotablenameless-2.6.0.1.tar.gz.

File metadata

  • Download URL: csvtotablenameless-2.6.0.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for csvtotablenameless-2.6.0.1.tar.gz
Algorithm Hash digest
SHA256 c9a094e34c8c95db21e6796559e246bf41409661a56afbfcb9166f9ed3615c5a
MD5 9cdefce60611d396596b9408dac996b1
BLAKE2b-256 e804d03a3f0cc84d30b45e50691fbed8a9fe43077d7881af01b47f07e345976d

See more details on using hashes here.

File details

Details for the file csvtotablenameless-2.6.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for csvtotablenameless-2.6.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 de2325803b86816dd603a61a88ee13631b8fd7c9ddf86684bc2e86e8402af2f8
MD5 6ba0214490f4cc8b83dc7dd4952b6b49
BLAKE2b-256 7b530f1de12cd768a46bd1b5e46932f2e9d7491082cc79948205d3277e5b0302

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page