What is your favorite Python web framework?


A

Admin

I am doing some research for a Python framework to build web applications.
I have discarted Zope because from what I've read, the learning curve is
too steep, and it takes more time to build applications in general with
Zope.
I have kept the following:

- PyWork - http://pywork.sourceforge.net (Not sure if it's mature)
- Django - http://www.djangoproject.com (Looks interesting)
- CherryPy - http://www.cherrypy.org (Unsure)

I have also found a more comprehensive list here:
http://wiki.python.org/moin/WebProgramming
But I'd like to know your opinion on what you think is best. The Python
framework I'll use will be to build an e-commerce application looking like
Amazon.com
I favor speed of development, intensive OO development, performance under
heavy load, short learning curve, good documentation and community.
 
Ad

Advertisements

S

Sybren Stuvel

Admin enlightened us with:
But I'd like to know your opinion on what you think is best. The
Python framework I'll use will be to build an e-commerce
application looking like Amazon.com

I'm greatly in favour of Cheetah. Also see
http://www.unrealtower.org/mycheetah. I need to put up way more
documentation & examples, but the basics are there.

Let me know what you think!

Sybren
 
L

Luis M. Gonzalez

I really like Karrigell ( http://karrigell.sourceforge.net ).
It is, IMHO, the most pythonic framework because all you need to know
is the python language.
You don't need to learn any template or special language, you only use
plain and regular python.
It also gives you a lot of freedom when choosing a programming style:
you can code python inside html (just like in PHP or ASP) or you can
code html within python.

It also lets you map databases to objects and you can use the included
database Gadfly or any other that has a python api.
The downside: it currectly works with its built-in server, and although
you can use it alongside Apache or Xitami, there's still no way to do
it with mod_python, and as far as I know, there's no hosting providers
with Karrigell instaled.
It is being used mainly by people who run their websites from their own
computers.
 
Ad

Advertisements

P

paron

Admin:
I have kept the following:

- PyWork - http://pywork.sourceforge.net (Not sure if it's mature)
- Django - http://www.djangoproject.com (Looks interesting)
- CherryPy - http://www.cherrypy.org (Unsure)

I have also found a more comprehensive list here:
http://wiki.python.org/moin/WebProgramming
But I'd like to know your opinion on what you think is best. ..
..
..
I favor speed of development, intensive OO development, performance under
heavy load, short learning curve, good documentation and community.

I settled on CherryPy:

Performance under load -- can't say one way or the other. I do know
it's lightweight -- 40kb download, I recall.

Good documentation -- yeah, if you are using the "mainstream" features.
It's pretty extensible, too, so there are some "secondary" functions
and features that are not as well documented. I know that the
documentation is a major concern of the oommunity, and that they are
pretty quick to respond when the docs are unclear.

I give CherryPy very high marks for: speed of development, intensive OO
development, short learning curve (if you already know Python), and
community. And, as I said, for extensibility.

I found I had working apps running on my machine with CherryPy in less
time than I needed to read the installation docs on some other
frameworks. It's just like writing Python, but with one extra object
(cpg (2.0) or cherrypy (2.1) and one extra setting ("exposed = True").
That's it. I'd say give it a try -- you can have it running apps and go
through the tutorials in a morning, so why not get first-hand with it?
 
J

JZ

Dnia 18 Jul 2005 00:52:40 -0700, laurent napisa³(a):
I follow somes projects that have a pythonic way to make web site.
there's thats projects :
http://www.cherrypy.org/
and
http://subway.python-hosting.com/
subway aim to be like ruby on rails frameworks , simple and fast
developpment. It uses cherrypy and other project like :
* http://www.cheetahtemplate.org/
* http://www.formencode.org/
* http://www.sqlobject.org/

I think Django is more mature than Subway or CherryPy and can quickly
become the black horse in area of pythonic frameworks.
 
M

Michael Maibaum

Hello,

I never used a web framework using Python modules, but I think
cheetah, Karrigel and CherryPy are not good since they allow user
to play with the HTML code. IMO, it's not pythonic but phpythonic.

Well, pretty much anything would allow that, it is more a matter of
how much they encourage it ;)

I find the cherrypy + HTML Template combination pretty resistant to
excessive HTML in the Python, or Python in the HTML.

One day when I get some time I'll have a look at Django, though I
must say the templating language looked less nice than the rest of it
on first glance, it says you don't have to use it though...


Michael
 
J

JZ

Dnia 18 Jul 2005 04:24:12 -0700, paron napisa³(a):
I settled on CherryPy:

Performance under load -- can't say one way or the other. I do know
it's lightweight -- 40kb download, I recall.

I do not know how new CherryPy 2.1 (which now can use wsgi) is fast and
stable but earler versions were quite unstable under heavy loads. Its
paradigm "creating web site like standalone appl" (inherited from Cherry1)
is not good suited to more complicated internet applications.

Much more stable and much faster is e.g. Mygty (http://myghty.org) It is
about 2x faster then CherryPy. Also faster than CherryPy is Webware and
SkunkWeb. I did not check how fast is Django... It is fresh framework for
open source community.
 
Ad

Advertisements

A

Admin

Much more stable and much faster is e.g. Mygty (http://myghty.org) It is
about 2x faster then CherryPy. Also faster than CherryPy is Webware and
SkunkWeb. I did not check how fast is Django... It is fresh framework for
open source community.

Mmmh... I really don't know which one is better :(
 
J

JZ

Dnia Mon, 18 Jul 2005 09:26:10 -0300, Admin napisa³(a):
Mmmh... I really don't know which one is better :(

Django has similar aproach to Rails or Subway. Myghty is similar to
Perl::Mason. I think those two are the most matured and powerfull. (I do
not mean Zope and Plone which is specific to its own category)
 
P

Peter Hansen

JZ said:
I think Django is more mature than Subway or CherryPy and can quickly
become the black horse in area of pythonic frameworks.

I'm not familiar with this expression. What do you mean by "black horse"?
 
G

Gerhard Haering

I'm not familiar with this expression. What do you mean by "black horse"?

Maybe "the Ferrari of pythonic frameworks" (black horse on yellow
background being the symbol of Ferrari).

That's what I thought of first when I tried to parse the sentence ;-)

-- Gerhard
--
Gerhard Häring - (e-mail address removed) - Python, web & database development

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC2633dIO4ozGCH14RAmnqAJ4qCMBjzt0IkHU92yevtTXrxJbg5ACfYB/R
7zggzVTEC00QlpUn1pnwJ0c=
=Z6x0
-----END PGP SIGNATURE-----
 
Ad

Advertisements

J

JZ

Dnia Mon, 18 Jul 2005 09:06:21 -0400, Peter Hansen napisa³(a):
I'm not familiar with this expression. What do you mean by "black horse"?

I meant "dark horse". Sorry for confusion. :)
 
P

Peter Hansen

Gerhard said:
Maybe "the Ferrari of pythonic frameworks" (black horse on yellow
background being the symbol of Ferrari).

I know there are "black sheep" in some families, and "dark horse
candidates". Also yellow-bellied sapsuckers. There's a "black horse"
fish in the Mississippi valley (also, quite coincidentally, of the
sucker family). Not entirely sure that was the intended connotation. :)

-Peter
 
L

Luis M. Gonzalez

Peter said:
I know there are "black sheep" in some families, and "dark horse
candidates". Also yellow-bellied sapsuckers. There's a "black horse"
fish in the Mississippi valley (also, quite coincidentally, of the
sucker family). Not entirely sure that was the intended connotation. :)

-Peter

I'm used to make those mistakes too...
This mailing list taught me more English than Python for sure.
I read the expression "Dark horse contender" many times, and i guess it
has some reminiscence from medieval times and the cavalry stories.
It meaning is something like the "unknown that could be the new champ",
someone intriguing and mysterious who doesn't unveil its skills untill
showtime. Am I right?

Cheers,
Luis
 
Ad

Advertisements

C

Colin J. Williams

Luis said:
I'm used to make those mistakes too...
This mailing list taught me more English than Python for sure.
I read the expression "Dark horse contender" many times, and i guess it
has some reminiscence from medieval times and the cavalry stories.
It meaning is something like the "unknown that could be the new champ",
someone intriguing and mysterious who doesn't unveil its skills untill
showtime. Am I right?

Cheers,
Luis
You're right on!.

Colin W.
 

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

Top