Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How run web software *locally* easily?

Reply
Thread Tools

How run web software *locally* easily?

 
 
seberino@spawar.navy.mil
Guest
Posts: n/a
 
      01-06-2006
If grandma wanted to run some web application software (HTML files,
CGI/Python scripts)
*locally*, must she install a full blown Apache server with all the
trimmings??

Is there some easy way to somehow perhaps embed a minimal web server in
a Python tar ball
or some other clever trick to make grandma's life easier?

Chris

 
Reply With Quote
 
 
 
 
Paul Rubin
Guest
Posts: n/a
 
      01-06-2006
"(E-Mail Removed)" <(E-Mail Removed)> writes:
> Is there some easy way to somehow perhaps embed a minimal web server in
> a Python tar ball


Yes, sure, see any of the HTTP server classes in the stdlib.
Just listen on a localhost socket and pop a browser to point to that socket.
 
Reply With Quote
 
 
 
 
Fuzzyman
Guest
Posts: n/a
 
      01-06-2006
For development I run my own modified version of CGIHTTPServer.

It is called CGITHTTPServerWithSSI -
http://www.voidspace.org.uk/python/recipebook.shtml#ssi

It implements *some* SSI functions and allows you to maintain sites in
*two* folders. A main folder and a second 'development' folder that
just has stuff you're working on. It looks in the development folder
first.

The HTTPServer classes make great base classes for messing around with
your own custom implementations for testing.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

 
Reply With Quote
 
=?iso-8859-1?B?c+liYXN0aWVu?=
Guest
Posts: n/a
 
      01-06-2006
for example like that: python -m CGIHTTPServer

 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push John UK VOIP 0 08-29-2007 05:14 AM
SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push John ASP .Net 0 08-29-2007 05:08 AM
SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push John Java 0 08-28-2007 05:53 AM



Advertisments