Python Forum
Web Form to Python Script to Text File to zip file to web
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web Form to Python Script to Text File to zip file to web
Greetings folks,
I might be over thinking my question but let me ask it and get feedback from experts.

I want to have a web form that has multiple fields (devicename, redundant, sharedIP, indaIP, indbIP) and I want to pass those variables to a python script that will then run and create some text files that I will use for other things and then I will have the text files added to a zipped file and then return an html page to the user with a link to the zip file. What I am trying to do is create files that engineers can use to configure some devices.

So engineer would put the information in the browser and then they would get a zipped file with multiple text files that they will use to configure a device (standalone) or a pair of devices (High Availability)

Do I use Flask, or CGO or what? I have done this with perl in the past, but can't wrap my head around how to do this all with python.
Any help would be appreciated.

(Aug-09-2020, 11:24 AM)wfsteadman Wrote: Do I use Flask, or CGO or what?
Flask is fine for this,it should be a quite manageable/simple task to do.
The obstacle here can be more that you new to this in Python/Flask.
Look at some tutorial eg this match the task pretty good,if just change some stuff.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Subprocess.Popen() not working when reading file path from csv file herwin 13 361 May-07-2021, 03:26 PM
Last Post: herwin
  code for CSV file to html file without pandas jony057 1 167 Apr-24-2021, 09:41 PM
Last Post: snippsat
  Copy column from one existing excel file to another file mkujawsk 0 216 Apr-14-2021, 06:33 PM
Last Post: mkujawsk
  Text File Manipulation Queries? JustJeff 2 305 Apr-10-2021, 08:12 PM
Last Post: JustJeff
  Request for Python code - Features extraction from JSON file (cuckoo) thinker 1 188 Apr-07-2021, 04:40 PM
Last Post: Larz60+
  How to make python run other file? Adrian_L 4 301 Apr-06-2021, 06:39 PM
Last Post: ndc85430
  Importing text file into excel spreadsheet with formatting david_dsmn 1 217 Apr-05-2021, 10:21 PM
Last Post: david_dsmn
  I can't open a python file :( Oshadha 2 407 Mar-28-2021, 11:00 PM
Last Post: pythonprogrammer1101935
  Get the current file name in Python shantanu97 1 280 Mar-22-2021, 04:32 PM
Last Post: Larz60+
  Move file from one folder to another folder with timestamp added end of file shantanu97 0 191 Mar-22-2021, 10:59 AM
Last Post: shantanu97

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020