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.
/data
: directory that stores the uploaded archive files/static
: contains custom CSS and Javascript code/templates
: contains the HTML filesapp.py
: the main Flask application coderequirements.txt
: list of all the Python libraries needed to run the application
- First, download the example and go to the directory
cd csv-viewer
- (Optional) Create a virtual environment (use
deactivate
to deactivate the environment)
virtualenv venv
source venv/bin/activate
- Install the requirements
pip install -r requirements.txt
- Load the Flask application
python app.py
-
Copy paste the URL to a browser
-
In the browser you can now:
- Upload an data archive file (e.g. dakota-height-history.tar.gz)
- Click upload
- View the CSV files extracted with
pardata