Hi,
I suppose you could do that - I would be very careful about the data coming form the client - if you do use that.
As for calling the script, why would you want to call it from Moodle if you can just set up a cron (scheduled task) to run the python script directly? If you do need it to be run from Moodle then look at the Tasks API - https://docs.moodle.org/dev/Task_API
Cheers
I suppose you could do that - I would be very careful about the data coming form the client - if you do use that.
As for calling the script, why would you want to call it from Moodle if you can just set up a cron (scheduled task) to run the python script directly? If you do need it to be run from Moodle then look at the Tasks API - https://docs.moodle.org/dev/Task_API
Cheers