Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 810 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 810 Bytes

PyViewer

A basic CSV viewer for large files.

PyViewer loads the top N MB from a CSV-like file and displays it as a table for the user. It allows quick searching over the columns with regular expressions.

Usage

viewer.py [-hd|--header] [-re|--regex] [-s|--search column:row] filename
  • header treats first line of file as a header
  • regex treats the row argument of search as a regular expression
  • search displays only items matching the string/regex 'row' from column 'column'
  • sample usages
$ cd src
$ python viewer.py ../sample-data/csv_100x10.csv
$ python viewer.py --header ../sample-data/csv_100x10.csv
$ python viewer.py --header -re -s strb_0:.*?land$ ../sample-data/csv_100x10.csv

Documentation

See this page for further details.