Web framework

  • Thread starter Gianluca Sartori
  • Start date
G

Gianluca Sartori

Hi guys,

What web framework do you suggest to develop with? I had a look both at
Nevow and Quixote. These seemes to be the most appreciated by the
community. Anyway, I had no luck looking for a complete and coherent
documentation.

Thanks for any suggestion,
Gianluca
 
D

dowskimania

Gianluca said:
Hi guys,

What web framework do you suggest to develop with?

I really like CherryPy. It has a very intuitive design. A "directory"
is an object and the "files" in it are methods. URL variables are
passed as arguments to the methods. The CherryPy site has a good
tutorial and some examples that should get you up and running fairly
quickly.

http://www.cherrypy.org
Thanks for any suggestion,
Gianluca

Hope this helps.

Christian
 
F

Fred Pacquier

Gianluca Sartori said:
Hi guys,
What web framework do you suggest to develop with? I had a look both at
Nevow and Quixote. These seemes to be the most appreciated by the
community. Anyway, I had no luck looking for a complete and coherent
documentation.

Snakelets is nice, clean, simple to get started, and well documented.
Karrigell is about in the same league. CherryPy is a step above (all IMO of
course).
 
G

Gianluca Sartori

Hi Christian, thanks for your replay. I gave a quick look at cherryPy
too, but I had the impression it wasn't enought to be used in a real
world contest. What about performances? Can I safely consider it to
develop an Intranet/Extranet? My main concern is with scalability. What
will happend if my user-base will grow? What if I had to add web
services interface (say XML-RPC or SOAP) to my application? Can I do it
in a second time without spending too much time/money?

Thanks,
Gianluca
 
T

Tim Jarman

Gianluca said:
Hi Christian, thanks for your replay. I gave a quick look at cherryPy
too, but I had the impression it wasn't enought to be used in a real
world contest. What about performances? Can I safely consider it to
develop an Intranet/Extranet? My main concern is with scalability. What
will happend if my user-base will grow? What if I had to add web
services interface (say XML-RPC or SOAP) to my application? Can I do it
in a second time without spending too much time/money?

Thanks,
Gianluca

Hi Gianluca,
In what respects do you think CherryPy falls short? There are some nice
performance stats on the CherryPy wiki (look under the FAQ) and in any case
you can run it behind Apache. It handles XML-RPC out of the box - not sure
about SOAP, but the design is sufficiently modular to add that in if
required. There are real-world sites using it in production; again, check
out the wiki.

HTH,
Tim
 
C

Carlos Ribeiro

Hi Christian, thanks for your replay. I gave a quick look at cherryPy
too, but I had the impression it wasn't enought to be used in a real
world contest. What about performances? Can I safely consider it to
develop an Intranet/Extranet? My main concern is with scalability. What
will happend if my user-base will grow? What if I had to add web
services interface (say XML-RPC or SOAP) to my application? Can I do it
in a second time without spending too much time/money?

Far from true :) A few data points (taken from
http://www.cherrypy.org/wiki/CherryPySpeed):

- In 99% of the cases, the answer is "this depends on your actual
application code, not on CherryPy itself".

- CherryPy averages 429 requests/second, in threaded mode (which
includes the penalty for thread-switching), in a Pentium 1.6 Ghz, 1GB
RAM, under Windows XP 2. The test was run using ab, the load testing
tool from the apache project.

- In practice, we found it easier to exceed available bandwidth than
to exceed CherryPy's limits. With something as low as 200 requests/s
one can get a few MB/s of throughput (that's measurable, but I don't
have the numbers for this test; but to the math yourself, for a 10Kb
page...). Of course, Intranet sites do not suffer from this problem,
but the userbase is usually limited.

- The worst case scenario is when one have lots of small objects to
serve. This usually means static content (icons & small gif files),
and can be greatly accelerated by running CherryPy under a caching
frontend - either Apache, or even squid in web acceleration mode work
just fine.

While you are at it, check also this page:

http://www.cherrypy.org/wiki/CherryPyProductionSetup

--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: (e-mail address removed)
mail: (e-mail address removed)
 
C

Chris

I really like CherryPy. It has a very intuitive design. A "directory"
is an object and the "files" in it are methods. URL variables are
passed as arguments to the methods. The CherryPy site has a good
tutorial and some examples that should get you up and running fairly
quickly.

http://www.cherrypy.org


Hope this helps.

Christian
Does CherryPy require a python installation on the client side?
 
G

Gianluca Sartori

Well, my concern here was mostly about SSL support. It seems it's not
supported natively. Anyway, I'm looking at all those frameworks by a
'pre-evaluation' point of you. so I'm fully trusting what I can read on
their websites...
 
A

andre.p.meyer

Gianluca said:
Hi guys,

What web framework do you suggest to develop with? I had a look both at
Nevow and Quixote. These seemes to be the most appreciated by the
community. Anyway, I had no luck looking for a complete and coherent
documentation.

Thanks for any suggestion,
Gianluca
 
A

andre.p.meyer

You should definitely have a look at Zope 3. There is good
documentation available and it can do a lot of good stuff.
 
J

Joe

You should definitely have a look at Zope 3. There is good
documentation available and it can do a lot of good stuff.

But then, the thing I hate about Zope, is that source code is not
accessible with normal development tools since it's stuck in the ZODB.

Joe.
 
D

Diez B. Roggisch

Joe said:
But then, the thing I hate about Zope, is that source code is not
accessible with normal development tools since it's stuck in the ZODB.

Plain wrong. You can access them via FTP and WEBDAV. In kde under linux, all
file-io can be done through these protocols, so you can operate on them as
if they were local files.
 
V

Venkat B

I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
implementation.

Hi Sridhar,

Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer
in particular) that come packaged with Python itself ?

Thanks,
/venkat
 
J

Joe

Plain wrong. You can access them via FTP and WEBDAV.

Not wrong. I am aware of this, but it's not like that many development
tools can work through FTP or WebDav... Besides, how to have the
source code under source control if it's stuck in the ZODB?

Joe.
 
J

Josef Meile

Hi Joe,
Not wrong. I am aware of this, but it's not like that many development
tools can work through FTP or WebDav... Besides, how to have the
source code under source control if it's stuck in the ZODB?
I guess you are reffering to "Python Scripts" and "ZClasses", which
indeed are stuck in the ZODB. But in fact you can write external python
products for zope, which reside on your file system. What is stuck in
the ZODB would be the instances of those products.

Regards,
Josef
 
D

Diez B. Roggisch

Not wrong. I am aware of this, but it's not like that many development
tools can work through FTP or WebDav ..

If your tools can't, then you can still use ftp clients to push the files to
the server. Actually lots of web-development is done by working locally on
the files, then publishing these to the server. Think of the horror to
create apache modules with certain lib dependencies (e.g. oracle) under
windows. Some people I know even abuse CVS for uploading their files to the
server - which renders CVS pretty useless.

And quite a few tools _are_ capable of directly using ftp as storage
backend. (x)emacs for example.
Besides, how to have the
source code under source control if it's stuck in the ZODB?

You can still fetch it using webdav and ftp and stick it into CVS/SVN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top