You are not logged in.

#1 2005-07-01 18:53:45

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

python web frameworks

does anyone have any experience with this stuff? I'm talking non-cgi stuff - like Zope, Twisted, CherryPy, Spyce, and the like - there's about 50 of them...

It's difficult to find comparissons of them.  To me, Spyce looks the best, the problem is it looks like a real PITA to setup... CherryPy might be worth checking out too.

What do you think?

Offline

#2 2005-07-01 20:19:07

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: python web frameworks

Hmmm CherryPy == Ruby on Rails, python style...

from cherrypy import cpg

class Test:
   def index(self):
      yield "Check mate!"
   index.exposed = True

cpg.root = Test()
#cpg.server.start() #8080 by default
cpg.server.start(configMap={'socketPort':80})

and then "python checkmate.py"... bam, you got  a web server

edit: more Rails-esque stuff:

from cherrypy import cpg

class Test:
   def index(self):
      yield "Check mate!"
   def foo(self,arg="no arg parameter passed in"):
      yield "arg = "+arg
   index.exposed = True
   foo.exposed = True

cpg.root = Test()
#cpg.server.start() #8080 by default
cpg.server.start(configMap={'socketPort':80})

http://phrakture.homelinux.net/foo
http://phrakture.homelinux.net/foo?arg=some%20arg

Offline

#3 2005-07-01 23:53:59

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: python web frameworks

Rails!!


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2005-08-28 22:15:56

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: python web frameworks

shouldn't there be a spyce pkgbuild in AUR smile [I know I know]

Offline

Board footer

Powered by FluxBB