ANN: Snakelets 1.1 (simple-to-use web app server with dynamic pages)

Karl Scalet news at yebu.de
Tue Aug 5 09:42:47 EDT 2003


Irmen de Jong schrieb:
> Karl Scalet wrote:
> 
>> the reason why I asked for CGI was that I potentially
>> will hold a course about python/webprogramming (very
>> newbie level) and was thinking about an easy way to set
>> up an environment of such.
> 
> 
> Well, setting up Snakelets is as simple as untarring the tarball
> and starting serv.py. Presto, a running web server with
> several demo applications ready to go.
> Adding your own app is as simple as creating a directory

very easy and nice, indeed.
BTW after a change of the port-number and a restart,
the server crashed:
snakeserver/server.py line 511:
    the clearPageCache argument is missing

> and stuffing some .html files (or .y files) into it.
> 
> But it depends on what you want to *achieve* with the web
> app in your course. If it is a few simple pages, CGI is
> good enough. But if you want to do stuff with sessions,
> or more complex pages or page interactions, IMHO CGI
> is quickly becoming too cumbersome.

see below (current web-hosting situation)

>> Previously I was thinking
>> about twisted, but did not yet investigate about the
>> CGI capabilities there. Why CGI at all: Simple because
>> if I introduce some simple web-applications in the course
>> the attendees could take them and most easily transport
>> them to a common web-hoster. I know about CGIHTTPServer
>> and might end up with it.
> 
> 
> FWIW, it is trivial to create a Ypage in Snakelets or
> a true Snakelet that 'calls' your designated "cgi" script
> with the current request environment. But one thing is
> certain: the web app you're creating won't easily be
> transported to a common web-hoster, while plain old
> CGI scripts would. It seems that going with CGIHTTPServer
> (or even a pre-configured apache server that can run
> your python cgi scripts) is your best option.

I will play around with Snakelets even more. As far as
I can see now, it's pretty right for educational
purposes (at the least).

Do you intend to bring Snakelets up to a production level?
Which one of the current products (Webware?) do you
think is closest to yours?
Thank you anyhow for Snakelets.

Karl, hopefully not initiating a huge thread :-)





More information about the Python-list mailing list