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
#1
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.

Thanks
Wally
Reply
#2
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot get cmd to print Python file Schauster 11 564 May-16-2024, 04:40 PM
Last Post: xMaxrayx
  How to Randomly Print a Quote From a Text File When User Types a Command on Main Menu BillKochman 13 1,283 Apr-24-2024, 05:47 AM
Last Post: Bronjer
  very newbie problem on text file zapad 2 341 Apr-12-2024, 06:50 PM
Last Post: zapad
  Python openyxl not updating Excel file MrBean12 1 428 Mar-03-2024, 12:16 AM
Last Post: MrBean12
  Python logging RotatingFileHandler writes to random file after the first log rotation rawatg 0 483 Feb-15-2024, 11:15 AM
Last Post: rawatg
  connect sql by python using txt. file dawid294 2 537 Jan-12-2024, 08:54 PM
Last Post: deanhystad
  file open "file not found error" shanoger 8 1,364 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Script that alternates between 2 text messages DiscoMatic 1 573 Dec-12-2023, 03:02 PM
Last Post: buran
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,699 Nov-09-2023, 10:56 AM
Last Post: mg24
  Python and pandas: Aggregate lines form Excel sheet Glyxbringer 12 2,115 Oct-31-2023, 10:21 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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