473,809 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

favorite python web development tool?

hi all -
i'm fairly new to python, coming from a java servlet / velocity template
background. i'm looking for a good python web development tool, and
hope to find some suggestions here.

given my background, webware+cheetah feels comfortingly familiar, and
i'm leaning toward it. before i dive in, though, i'm wondering what you
experienced users think about it, compared to the other tools that are
out there. eg, does the python environment have strengths that are
better exploited with something other than a servlet-like model?
thanks for your thoughts!
--
pssst: ".spamguard " isn't in my real e-mail address.
Jul 18 '05
17 2003
Am Tue, 17 Aug 2004 15:43:22 -0400 schrieb mike:
hi all -
i'm fairly new to python, coming from a java servlet / velocity template
background. i'm looking for a good python web development tool, and
hope to find some suggestions here.

given my background, webware+cheetah feels comfortingly familiar, and
i'm leaning toward it. before i dive in, though, i'm wondering what you
experienced users think about it, compared to the other tools that are
out there. eg, does the python environment have strengths that are
better exploited with something other than a servlet-like model?


Hi,

I use quixote (without PTL and Form library) and ZODB.

Many don't like it, but I do:

def foo(self, request):
ret=[]
ret.append(self .header())
ret.append('<b> Hello World!</b>')
ret.append(self .footer())
return ''.join(ret)

100% Python

with the filter_output hook, every page
is checked with html-tidy during development.

Uncaught exceptions on the production
site get to me by email as soon as they occur.

A nightly unittest checks for errors.

HTH,
Thomas
Jul 18 '05 #11
mike wrote:
hi all -
i'm fairly new to python, coming from a java servlet / velocity template
background. i'm looking for a good python web development tool, and
hope to find some suggestions here.

given my background, webware+cheetah feels comfortingly familiar, and
i'm leaning toward it. before i dive in, though, i'm wondering what you
experienced users think about it, compared to the other tools that are
out there. eg, does the python environment have strengths that are
better exploited with something other than a servlet-like model?


For those coming from a PHP/ASP/JSP background, Spyce will be the
most readily familiar and it rocks for those who use this approach.

I've never had a use for a templating solution but Spyce
is also supposed to support Cheetah well.
Jul 18 '05 #12
i'm fairly new to python, coming from a java servlet / velocity
template background. i'm looking for a good python web development
tool, and hope to find some suggestions here.


You may find this url interesting:
http://www.colorstudy.com/docs/shootout.html

I use Quixote and for some projects also Quixote + HTMLTemplate
(http://freespace.virgin.net/hamish.s...ltemplate.html)

Jul 18 '05 #13
> given my background, webware+cheetah feels comfortingly familiar, and
i'm leaning toward it. before i dive in, though, i'm wondering what you
experienced users think about it, compared to the other tools that are
out there. eg, does the python environment have strengths that are
better exploited with something other than a servlet-like model?


Have a look at mod_python 3.1 - I've found performance very good. I
benchmarked it against a commercial oversized J2EE app server and for
non complex app found it faster. It includes session handling and a
basic template system. However, you can use whichever templating
language you like with it. Cheetah is nice

Also have a look at SQL Object and db_rows
http://www.sqlobject.org/

SQL object is worth checking out -SQLObject is an object-relational
mapper. It allows you to translate RDBMS table rows into Python
objects, and manipulate those objects to transparently manipulate the
database.
It allows you to use something like
p = animal.new(name ="Giraffe", category="mamma l") to create a new animal instead of db.execute(("IN SERT into animals (name, category) values %s, %s),

"Giraffe", "mammal")

a simpler alternative - db_rows
http://opensource.theopalgroup.com/

(http://xminc.com/linux/db_rows.txt)

Anthony
http://xminc.com/linux/
Jul 18 '05 #14
At some point, Ksenia Marasanova <ks****@ksenia. nl> wrote:
i'm fairly new to python, coming from a java servlet / velocity
template background. i'm looking for a good python web development
tool, and hope to find some suggestions here.


You may find this url interesting:
http://www.colorstudy.com/docs/shootout.html

I use Quixote and for some projects also Quixote + HTMLTemplate
(http://freespace.virgin.net/hamish.s...ltemplate.html)


I'll second Quixote and HTMLTemplate. Quixote gives a nice framework
(handling requests, URL mapping, etc.), and HTMLTemplate does the
separation of presentation and content.

--
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)phy sics(dot)mcmast er(dot)ca
Jul 18 '05 #15
mike <ng************ @icewater.org> wrote in message news:<10******* ******@corp.sup ernews.com>...
hi all -
i'm fairly new to python, coming from a java servlet / velocity template
background. i'm looking for a good python web development tool, and
hope to find some suggestions here.
Well, <insert screaming advocacy here>. Alternatively, you could take
a look at the WebProgramming section [1] of the PythonInfo Wiki [2].
And if other respondents contributed their opinions to that resource,
we wouldn't necessarily have the situation where people regard that
resource as confusing whilst giving a parade of the frameworks every
time someone asks how to do CGI with Python.
given my background, webware+cheetah feels comfortingly familiar, and
i'm leaning toward it. before i dive in, though, i'm wondering what you
experienced users think about it, compared to the other tools that are
out there. eg, does the python environment have strengths that are
better exploited with something other than a servlet-like model?


I've heard that Webware plus Cheetah is a fairly equivalent
combination to Java Servlet API plus Velocity, at least in style. I
think it's widely accepted that if you're doing content management,
you might be better served with something like Zope or a derivative
such as Plone.

If you look at the OriginalWebProg rammingClassifi cation [3] on the
Wiki, you'll get a better impression of what is available, in my
opinion. That classification, combined with the
PresentationTec hnologies [4] page (now mysteriously delinked in some
"tidying up" activity), is more concise and doesn't try and blind you
with pseudo-science in the way that the main classification does:
"Variable Insertion-Replacement Templating Applications
(Pre-processors)" anyone?

Paul

[1] http://www.python.org/cgi-bin/moinmoin/WebProgramming
[2] http://www.python.org/moin/FrontPage
[3] http://www.python.org/cgi-bin/moinmo...Classification
[4] http://www.python.org/cgi-bin/moinmo...onTechnologies
Jul 18 '05 #16
Am Wed, 18 Aug 2004 10:22:43 -0700 schrieb Anthony_Barker:
given my background, webware+cheetah feels comfortingly familiar, and
i'm leaning toward it. before i dive in, though, i'm wondering what you
experienced users think about it, compared to the other tools that are
out there. eg, does the python environment have strengths that are
better exploited with something other than a servlet-like model?


Have a look at mod_python 3.1 - I've found performance very good. I
benchmarked it against a commercial oversized J2EE app server and for
non complex app found it faster. It includes session handling and a
basic template system. However, you can use whichever templating
language you like with it. Cheetah is nice


Hi Anthony,

Did you compare it to SCGI, too?
http://www.mems-exchange.org/software/scgi/

Thomas

Jul 18 '05 #17
> > Have a look at mod_python 3.1 - I've found performance very good. I
benchmarked it against a commercial oversized J2EE app server and for
non complex app found it faster. It includes session handling and a
basic template system. However, you can use whichever templating
language you like with it. Cheetah is nice


Hi Anthony,

Did you compare it to SCGI, too?
http://www.mems-exchange.org/software/scgi/

Thomas


No didn't test scgi. I mod_python found it slightly faster than
mod_php and hugely faster than zope and lotus domino. Didn't test
scgi.

Prefer to stick to the official apache project thinking that it will
be around longer. scgi does less than mod_python, so it may be quicker
- you should test it out.
Jul 18 '05 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
34292
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
38
3749
by: kbass | last post by:
In different articles that I have read, persons have constantly eluded to the productivity gains of Python. One person stated that Python's productivity gain was 5 to 10 times over Java in some in some cases. The strange thing that I have noticed is that there were no examples of this productivity gain (i.e., projects, programs, etc.,...). Can someone give me some real life examples of productivity gains using Python as opposed other...
53
3566
by: john67 | last post by:
The company I work for is about to embark on developing a commercial application that will cost us tens-of-millions to develop. When all is said and done it will have thousands of business objects/classes, some of which will have hundreds-of-thousands of instances stored in a DB. Our clients will probably have somewhere between 50-200 users working on the app during the day, possibly in mutiple offices, and then a large number of batch...
28
4837
by: Admin | last post by:
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)
8
4610
by: Joakim Persson | last post by:
Hello all. I am involved in a project where we have a desire to improve our software testing tools, and I'm in charge of looking for solutions regarding the logging of our software (originating from embedded devices). Currently, we are using a heavyweight, proprietary log tool developed by another part of the company. This tool contains all "standard" logging functionality, but we also need to insert "debug" log points in the software of...
23
2415
by: gord | last post by:
As a complete novice in the study of Python, I am asking myself where this language is superior or better suited than others. For example, all I see in the tutorials are lots of examples of list processing, arithmetic calculations - all in a DOS-like environment. What is particularly disappointing is the absence of a Windows IDE, components and an event driven paradigm. How does Python stand relative to the big 3, namely Visual C++,...
122
7460
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection outside of that class. This structured way allows visual tools to host components, and allows programmers to build applications and libraries visually in a RAD environment. The Java language has JavaBeans as its component model which allows Java...
6
2434
by: Anastasios Hatzis | last post by:
Hello, I'm working on the light-weight MDA tool pyswarm, http://pyswarm.sourceforge.net/ (it is about a code-generator for Python/PostgreSQL-based software. I plan to add support of UML CASE tools other than the one supported currently. I would like to learn which UML tools you use (if any), preferrably if it comes to modeling a Python application. So I'm asking you to tell me the name of your favorite UML CASE tool(s).
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10637
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.