Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Remote server: running a Python script and making *.csv filespublicly available

Reply
Thread Tools

Remote server: running a Python script and making *.csv filespublicly available

 
 
Jason Hsu
Guest
Posts: n/a
 
      12-05-2012
I have a Python 2.7 script that produces *.csv files. I'd like to run this Python script on a remote server and make the *.csv files publicly available to read.

Can this be done on Heroku? I've gone through the tutorial, but it seems to be geared towards people who want to create a whole web site.

If Heroku isn't the solution for me, what are the alternatives? I tried Google App Engine, but it requires Python 2.5 and won't work with 2.7.
 
Reply With Quote
 
 
 
 
Miki Tebeka
Guest
Posts: n/a
 
      12-05-2012
On Wednesday, December 5, 2012 11:14:42 AM UTC-8, Jason Hsu wrote:
> make the *.csv files publicly available to read.


> Can this be done on Heroku? I've gone through the tutorial, but it seems to be geared towards people who want to create a whole web site.

See one option - http://stackoverflow.com/questions/8...app2-in-heroku

> If Heroku isn't the solution for me, what are the alternatives? I tried Google App Engine, but it requires Python 2.5 and won't work with 2.7.

AppEngine does support Python 2.7, see https://developers.google.com/appeng...python/runtime
 
Reply With Quote
 
 
 
 
Michael Torrie
Guest
Posts: n/a
 
      12-05-2012
On 12/05/2012 12:14 PM, Jason Hsu wrote:
> I have a Python 2.7 script that produces *.csv files. I'd like to
> run this Python script on a remote server and make the *.csv files
> publicly available to read.
>
> Can this be done on Heroku? I've gone through the tutorial, but it
> seems to be geared towards people who want to create a whole web
> site.
>
> If Heroku isn't the solution for me, what are the alternatives? I
> tried Google App Engine, but it requires Python 2.5 and won't work
> with 2.7.


Can you just write the files in a directory and then have apache
configured to serve this directory up over http? That way Python needn't
worry about the details of http serving. Other mini web servers would
work too like lighttpd or uhttpd.

Alternatively you could use Python-Twisted to implement a simple web
server that serves up the CSV.

Using a full framework is overkill, in my opinion. I'm not sure what
Heroku (first I've heard of it) is, but I don't think you need that.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing arguments to & executing, a python script on a remote machinefrom a python script on local machine (using ssh ?) ashish Python 5 09-20-2012 05:45 PM
Passing arguments to & executing, a python script on a remote machinefrom a python script on local machine ashish Python 4 09-20-2012 07:28 AM
WMI remote call in python script to create process on remote windowscomputer davidj411 Python 7 10-08-2009 08:58 AM
modify a long-running python script while it is running? Benjamin Rutt Python 2 12-20-2005 01:42 PM
Remote Assistance fails to connect, remote remote host name could not be resolved Peter Sale Wireless Networking 1 12-11-2004 09:09 PM



Advertisments