ANN: CherryPy-2.0-final released

Discussion in 'Python' started by remi@cherrypy.org, May 4, 2005.

  1. Guest

    Hello everyone,

    I am happy to announce the first stable release of CherryPy-2.

    CherryPy-2 is a pythonic, object-oriented web development framework.

    CherryPy-2 is a redesign of CherryPy-1 (the unpythonic features have
    been removed): no more compilation step, pure python source code (no
    more "CherryClass").


    Here is a sample Hello, World in CherryPy-2:

    # from cherrypy import cpg
    # class HelloWorld:
    # @cpg.expose
    # def index(self):
    # return "Hello world!"
    # cpg.root = HelloWorld()
    # cpg.server.start()

    Main properties:
    - this code starts a multi-threaded HTTP server that dispatches
    requests to methods
    - requests like "http://domain/dir/page?arg1=val1&arg2=val2" are
    mapped to "dir.page(arg1='val1', arg2='val2')"
    - CherryPy also supports "positional" arguments in URLs like
    http://domain/book/science/9
    - requests are mapped to an object tree that is "mounted" on cpg.root
    (for instance: "cpg.root.user", "cpg.root.user.remi", ...)
    - method must be explicitely exposed with a decorator "@cpg.expose"
    (or "index.exposed = True" for Python-2.3)
    - methods can return a generator instead of a string (useful when
    generating big pages)

    Here is a non-exhaustive list of CherryPy-2 features:
    multi-threaded HTTP server, XML-RPC server, sessions, form handling,
    authentication, unicode support, gzip-compression, virtual hosting,
    WSGI adapter

    The design of CherryPy-2 allows to easily write/use pluggable "filters"
    or "modules":
    - filters perform operations on the request/response such as
    gzip-compression or string encoding
    - modules are web applications (like a blog or a web forum) than can
    be easily "mounted" anywhere you want in your website

    CherryPy-2 is already used in production by many sites and is
    supported by an active community.

    Remi.

    http://www.cherrypy.org
     
    , May 4, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Remi Delon

    [ANN] CherryPy-0.10 released

    Remi Delon, Apr 27, 2004, in forum: Python
    Replies:
    0
    Views:
    261
    Remi Delon
    Apr 27, 2004
  2. Replies:
    3
    Views:
    325
    Ian Bicking
    Jan 3, 2005
  3. mep
    Replies:
    2
    Views:
    646
    Remi Delon
    Mar 9, 2005
  4. Replies:
    1
    Views:
    302
    Damjan
    Jul 15, 2005
  5. Replies:
    0
    Views:
    312
Loading...

Share This Page