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

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -