Forums

triggering a python script remotely

Hi there

Forgive me, as this is probably a stupid question, but I've been googling for a while and am a bit lost.

What I would like to do is trigger a python script remotely, say by an http request.

The idea is the that the request triggers a script and contains in it, a couple of variables to use in that script.

Say the script triggered is script.py, and I want to pass 3 variables; a name, a url, and a string, into that script.

Any suggestions would be very much appreciated.

Kind regards

Paul.

that sounds like setting up a web app, and having that be one of the end points. perhaps check out a hello world flask tutorial