4de4388b1e
Encode filenames to base64 and change URL to /result
2021-03-12 21:22:03 +02:00
e13d63bf6b
Major refactor
...
Refactor the templates to include a header, use csv-metadata-quality
in a subshell instead of trying to import and pass args to it (which
I actually managed to do, but then trying to capture the output was
an issue), and use ansi2html to prepare the CLI output as the HTML.
2021-03-12 19:14:49 +02:00
0136d99046
Add route for processing the input file
2021-03-11 22:42:59 +02:00
4f1d6fad38
main.py: Import csv_metadata_quality
...
Now I understand how I can use this, for example to print the vers-
ion of the CLI tool in the HTML template.
2021-03-11 20:29:43 +02:00
d204c23b93
main.py: Try to upload to /tmp
...
Creating and uploading to an "uploads" directory works locally, but
on Google App Engine I get an HTTP 500. Let's try uploading to /tmp.
2021-03-11 16:06:33 +02:00
81b5206e97
Add simple HTML template with file upload
...
Code taken from the following blog posts:
- https://pythonbasics.org/flask-upload-file
- https://blog.miguelgrinberg.com/post/handling-file-uploads-with-flask
2021-03-11 15:55:58 +02:00
2a5f612fe9
Add main.py
...
Following basic Flask on Google App Engine tutorial:
https://realpython.com/python-web-applications/#build-a-basic-python-web-application
2021-03-11 14:32:50 +02:00