473,750 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python on WWW - beginners question: what to choose?

Hello,

I'm currently starting with Python as a language for writing websites. I
must say that I'm overwhelmed by the number of choices I have (mod_python
with publisher, Vampire, mps, Spyce), cgi, fcgi, Webware, Zope,
Plone, ...).

Isn't there any article in style "this suite use this style of programming
and is good for this type of applications"?

I've tried mod_python.publ isher and Spyce so far (and looked on few others,
as mps, Vampire and Cheerypy). I'm currently giving Spyce the biggest
chance...howeve r, I'm not very satisfied with "in-line" coding (PSP-style)
as I do not want to program this way and I think it must have some
performance impact...but session.auto, request and response modules are big
help.
I'm satisfied with concept of mps, however It's fine that author hate
writing HTML, but I want to; or better, I want to use Cheetah Templates - i
think they are better for bigger sites (then homepage) as the one I want to
write.

Well...what exactly I'm looking for?

1) No module importing problem. In ideal case, specify directory, so I can
just import my_module, my_another_modu le...but that has to be "sandboxed"
for each apache virtual host. I would like to avoid interference between
sites I'm hosting.

2) Pooling. I want to have "pool" for data, which are shared between
sites/request, f. e. database connection. However, for some sites I would
like to have "kernel" module, which will be loaded in RAM, so sites must
not grab data from database (f. e. number of users online). However, this
could be solved by running system daemon on server...but it's not the ideal
solution, IMHO.

3) I'm not looking for framework so much complex as Zope or Plone is. My
site is specific with some original ideas, which are not reusable on other
sites, so I want to write it "from scratch". Additionally, I like to knew
code of the sites on web - f. e. using Cheetah don't bother me (it's not
directly on web), but using Phorum or phpBB yes.

I'm not interested in calling of pages (page.py/function or page.py?args), I
will use mod_rewrite anyway.

Is there anything what will satisfy my requirements, or I must write it? :)
Or I'm looking on this problem from bad shape and re-inventing wheel?

Thanks for advises (and sorry for long post for those who don't like it),

--
Lukas "Almad" Linhart
[:: http://www.almad.net/ ::]
[:: PGP/GNUPg key: http://www.almad.net/download/pubkey.asc ::]
Jul 18 '05 #1
5 1764

"Almad" <wr*****@almad. net> wrote in message
news:cu******** ***@news.vol.cz ...
Hello,

I'm currently starting with Python as a language for writing websites. I
must say that I'm overwhelmed by the number of choices I have (mod_python
with publisher, Vampire, mps, Spyce), cgi, fcgi, Webware, Zope,
Plone, ...).

Isn't there any article in style "this suite use this style of programming
and is good for this type of applications"?


Have you looked at these links?
http://www.python.org/pycon/papers/framework/web.html
http://pyre.third-bit.com/pyweb/index.html
You may find also this interesting as a list to several links related to
this topic:
http://www.python.org/moin/WebProgramming

Dan
Jul 18 '05 #2
Spyce has support for Cheetah Templates:
http://spyce.sourceforge.net/doc-mod_template.html
as well as pooling:
http://spyce.sourceforge.net/doc-mod_pool.html

Spyce templates are converted into python before execution, and you can
enable caching in the Spyce configuration file. Spyce also comes with
a script that will let you compile the templates on the command line so
you can see the resulting python code (run_spyceCmd.p y I believe).

hope that helps,
-jjr

Jul 18 '05 #3
Dan Perl wrote:
Have you looked at these links?
http://www.python.org/pycon/papers/framework/web.html
Dan


Thank You, I haven't found this one...exactly what I was looking for.

--

Lukas "Almad" Linhart

[:: http://www.almad.net/ ::]
[:: The stars are constantly shining, but often we do not see them until the
dark hours. ::]
[:: PGP/GNUPg key: http://www.almad.net/download/pubkey.asc ::]
Jul 18 '05 #4
> I'm satisfied with concept of mps, however It's fine that author hate
writing HTML, but I want to; or better, I want to use Cheetah Templates -
i think they are better for bigger sites (then homepage) as the one I want
to write.


Also, check out simpletal (http://www.owlfish.com/software/simpleTAL/)
--
damjan
Jul 18 '05 #5
Jeff Reavis wrote:
Spyce has support for pooling
True, but as covered by this message:
http://sourceforge.net/mailarchive/f...forum_id=10008,
for my purpose, Spyce must run as proxy server. However, when running as
proxy, it seems that I can't (really) run virtual hosts (no "sandboxing " as
specified by me in (1)). This is described by my (unreplied) message:
http://sourceforge.net/mailarchive/f...forum_id=10008
-jjr


--

Lukas "Almad" Linhart

[:: http://www.almad.net/ ::]
[:: The stars are constantly shining, but often we do not see them until the
dark hours. ::]
[:: PGP/GNUPg key: http://www.almad.net/download/pubkey.asc ::]
Jul 18 '05 #6

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

Similar topics

699
34069
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...
28
2599
by: Maboroshi | last post by:
Hi I am fairly new to programming but not as such that I am a total beginner From what I understand C and C++ are faster languages than Python. Is this because of Pythons ability to operate on almost any operating system? Or is there many other reasons why? I understand there is ansi/iso C and C++ and that ANSI/ISO Code will work on any system If this is the reason why, than why don't developers create specific Python Distrubutions...
76
3789
by: Nick Coghlan | last post by:
GvR has commented that he want to get rid of the lambda keyword for Python 3.0. Getting rid of lambda seems like a worthy goal, but I'd prefer to see it dropped in favour of a different syntax, rather than completely losing the ability to have anonymous functions. Anyway, I'm looking for feedback on a def-based syntax that came up in a recent c.l.p discussion:...
68
5880
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
38
4807
by: BORT | last post by:
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming language for kids." After MUCH clicking and high-level scanning, I am looking at Python and Forth. Both have advocates that say each is a great approach to learning computers. My programming classes were a long, long time ago in a land far, far...
11
2935
by: Magnus Lycka | last post by:
While the official Python Tutorial has served its purpose well, keeping it up to date is hardly anyones top priority, and there are others who passionately create really good Python tutorials on the web. I think 'A Byte of Python' by Swaroop C H is a good beginners tutorial, and 'Dive Into Python' by Mark Pilgrim is a good tutorial for more experienced programmers.
267
10797
by: Xah Lee | last post by:
Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at http://www.artima.com/weblogs/viewpost.jsp?thread=147358
40
2734
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I'm really annoyed at Python - and not for the reasons already mentioned on this list. Everyone know that programming is supposed to be a dark art, nearly impossible to learn. Computer code is supposed to be something impossible to read to the common person and yet reveal their secrets to the initiated - just remember the code displayed in the Matrix... Python takes all of that away. It is just too readable. Even beginners can...
34
3691
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar I am sort of hoping python has something like this because I feel it
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
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...
1
9339
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8260
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...
1
6804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
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
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.