Bottom Page

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.
wfsteadman likes this post

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Can we store value in file if we open file in read mode? prasanthbab1234 3 60 6 hours ago
Last Post: ibreeden
  Help- converting file with pyton script grinleon 3 185 Sep-23-2020, 11:48 AM
Last Post: grinleon
  Counting the most relevant words in a text file caiomartins 2 114 Sep-21-2020, 08:39 AM
Last Post: caiomartins
  saving data from text file to CSV file in python having delimiter as space K11 1 139 Sep-11-2020, 06:28 AM
Last Post: bowlofred
  python script to Batch File biprabu 1 126 Sep-09-2020, 01:49 PM
Last Post: jefsummers
  Count & Sort occurrences of text in a file oradba4u 7 183 Sep-06-2020, 03:23 PM
Last Post: oradba4u
  Trouble with reading csv file and putting it into a file Milfredo 3 188 Sep-04-2020, 05:30 AM
Last Post: Milfredo
  DNP3 file transfer with python Aussie 0 122 Sep-01-2020, 10:45 PM
Last Post: Aussie
  What is meant by "truncates the file" RE MysticLord 5 226 Sep-01-2020, 08:36 PM
Last Post: bowlofred
  Extracting data based on specific patterns in a text file K11 1 206 Aug-28-2020, 09:00 AM
Last Post: Gribouillis

Forum Jump:

Users browsing this thread: 1 Guest(s)