Necip Asım ARSLAN
Necip Asım ARSLAN

Reputation: 143

How can I run a python program with cooperation of a web server?

I want to launch a program from a local pc and connect it to a web server for some database operations such as creating a new user, creating a user list, listing all users who accessed the web server earlier. But I don't have information how to do it. I think Django can help me out in somewhere but I'm not sure.

In addition, I want it secure and hidden way. Like spotify's servers those provide local application and stream locally with no foot step.

How can I do it, with which technologies or modules or methods?

Thanks in advance...

Upvotes: 1

Views: 64

Answers (1)

s3dev
s3dev

Reputation: 9681

Sounds like a fun project, here are some tools we've used in the past to do something similar:

Tech Stack:

  • Python
  • flask library (web service and UI)
  • MySQL (database)
  • Raspberry Pi (as a web/database server - have a Pi for each if you like)

Hide it Away:

If you want to 'hide' the toolset from the user, simply setup the web server and database on a remote PC (RasPi for example - or two Pis, web server and database server). Then, the user will interact with the web UI and not have visibility of what's going on in the background.

Additional Reading:

If you're interested in web service stacks, have a look through this LAMP Wiki article. It breaks down and illustrates the concepts you're after very nicely. A primary different is that you'll be using Flask, rather than Apache.

Hope this helps!

Upvotes: 1

Related Questions