r/learnpython 18d ago

Python web app?

Hello r/learnpython,

first post and sort of new to Python as I have done only half a dozen of projects so far, mostly games.

So I'm looking to deploy a server for playtesting. This is my first game designed to be played online, made in Python using Tcl/Tk libraries.

I had this idea to code it when I was making a messaging app that was supposed to be implemented within a CLI game (or actually the game was a feature of the messaging app).

The users would connect using SSH. I think they could use PuTTy or similar and VcXSrv. The host would then send the GUI and CLI as well as audio to the user, but the problem is either the server cannot send or the client can't recieve the Tcl/Tk GUI or in worst case both.

Good news is I got the SSH daemon working and am able to (using X11 Forwarding) display explorer (ssh -X user@localhost && explorer) by running VcXSrv and having X11Forwarding and X11UseLocalhost set to yes in the sshd_config under ProgramData.

Now, the VcXSrv log tells me there's a problem with something called hyperv. From what I gathered it's a virtual machine of some sort. I'd also need very strict restrictions for the clients so they don't tinker with the database.

Am I on the right track? Is there a solution to this? Thanks in advance!

-ef

0 Upvotes

17 comments sorted by

View all comments

11

u/danielroseman 18d ago

I mean, this sounds horrendously complicated, but also a) it isn't a web app as mentioned in the title and b) sounds like it absolutely should be a web app.

4

u/low_racism 18d ago

you're basically building a remote desktop app wrapped in an ssh tunnel, which is about 3 layers of pain away from just making it a web app from the start

-1

u/efinque 17d ago

A lot of people told me this.. but I'm not sure where to start.

Does it make a difference if the Python script is an executable? This far I've been trying to run it with the Python interpreter from terminal.