Run a python script from url in terminal -


i wondering way execute python script url (www.blahblah.com/script.py) in terminal without downloading file disk?

thanks!

do want run on client, or on server (which return results)?

if want run on client, it's going have downloaded 1 way or another. easy way download, run, delete:

$ wget blahblah.com/script.py && (python script.py; rm script.py) 

if want run on server, can use cgi mentioned others. depending on want though, may want use web framework instead.

for lightweight framework check out flask. documentation excellent , managed , running in day (i'm new both python , web servers).


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -