Python on WWW - beginners question: what to choose?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Almad

    #1

    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 ::]
  • Dan Perl

    #2
    Re: Python on WWW - beginners question: what to choose?


    "Almad" <writeme@almad. net> wrote in message
    news:cu82v8$2f1 7$1@news.vol.cz ...[color=blue]
    > 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"?[/color]

    Have you looked at these links?


    You may find also this interesting as a list to several links related to
    this topic:
    The official home of the Python Programming Language


    Dan


    Comment

    • Jeff  Reavis

      #3
      Re: Python on WWW - beginners question: what to choose?

      Spyce has support for Cheetah Templates:

      as well as pooling:


      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

      Comment

      • Almad

        #4
        Re: Python on WWW - beginners question: what to choose?

        Dan Perl wrote:[color=blue]
        > Have you looked at these links?
        > http://www.python.org/pycon/papers/framework/web.html
        > Dan[/color]

        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 ::]

        Comment

        • Damjan

          #5
          Re: Python on WWW - beginners question: what to choose?

          > I'm satisfied with concept of mps, however It's fine that author hate[color=blue]
          > 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.[/color]

          Also, check out simpletal (http://www.owlfish.com/software/simpleTAL/)


          --
          damjan

          Comment

          • Almad

            #6
            Re: Python on WWW - beginners question: what to choose?

            Jeff Reavis wrote:
            [color=blue]
            > Spyce has support for pooling[/color]

            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
            [color=blue]
            > -jjr[/color]

            --

            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 ::]

            Comment

            Working...