8603ec4bca
main.py: Rework command line args
...
Turns out we only need to use sys.argv when we were trying to run
the csv-metadata-quality module directly in Python by importing it.
2021-03-13 12:52:22 +02:00
0471820f3a
main.py: Actually use sys.argv
...
I set this but never actually passed it to the subprocess. Now I'm
wondering if I actually need it, or if that was just when I was tr-
ying to import the csv-metadata-quality module?
2021-03-13 12:49:01 +02:00
69abc3d764
Add downloading of cleaned CSV file
2021-03-12 23:00:48 +02:00
126bf74ea0
main.py: Remove comments
2021-03-12 21:28:24 +02:00
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