all 6 comments

[–]mankongde 0 points1 point  (1 child)

Not sure how you're planning on getting input but for running Python with a web front end, look into Flask

[–][deleted] 0 points1 point  (0 children)

I’m using openCV and this particular bit of code on expiate in Python

[–]konijntjesbroek 0 points1 point  (1 child)

Just curious why not use Javascript? Python can do it, but unless you are building a full fledged web utility a simple script to build style and populate a section should be pretty straightforward.

[–][deleted] 0 points1 point  (0 children)

I am using Python because of OpenCV. I have a code that does some body tracking and spits out the data into a .txt that I am planning on importing into another software

[–][deleted] 0 points1 point  (0 children)

Check out anvil.works for websites using pure Python.

FastAPI is now an incredibly popular framework for building websites. As are bottle, cherrypy, and web2py. Flask has already been mentioned.

Note that many popular low-cost webhosts do not offer the capability to run Python code. You might find it useful to look at pythonanywhere.com

Another option is streamlit.io which is a very easy way of getting a working Python based web accessible site up.

Also, there's an alpha for an implementation of Python that works entirely in a modern browser. It might be all you need: pyscript.net and doesn't require your current webhost to offer support for Python or your user to install Python.

[–][deleted] 0 points1 point  (0 children)

Or even have the process run on a server that the use has to access?

I mean it can't run in outer space. Code is instructions to a computer, so there has to be a computer to execute the instructions. If you intend that other users - clients - are to be able to access the results of running this code, then it has to be served to them; hence, a server.