Skip to content

Latest commit

 

History

History
 
 

csv-viewer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Example CSV Viewer Application

The CSV Viewer provides a simple Flask application to load and view data archive files. In the backend, ParData is used to easily extract the data files that is ultimately displayed in the UI.

Included Files

  • /data: directory that stores the uploaded archive files
  • /static: contains custom CSS and Javascript code
  • /templates: contains the HTML files
  • app.py: the main Flask application code
  • requirements.txt: list of all the Python libraries needed to run the application

Running the Application

  1. First, download the example and go to the directory
cd csv-viewer
  1. (Optional) Create a virtual environment (use deactivate to deactivate the environment)
virtualenv venv
source venv/bin/activate
  1. Install the requirements
pip install -r requirements.txt
  1. Load the Flask application
python app.py
  1. Copy paste the URL to a browser

  2. In the browser you can now:

    1. Upload an data archive file (e.g. dakota-height-history.tar.gz)
    2. Click upload
    3. View the CSV files extracted with pardata