Re: Framework recommendations for web service?

2008-07-16 Thread Joshua Kugler
Phillip B Oldham wrote:
 So, can anyone suggest a lightweight python framework which just does
 the essentials?

web.py is pretty slim (not to be confused with web2py).

Pylons isn't very large, depending on what you call essential.

j

--
http://mail.python.org/mailman/listinfo/python-list


Re: Framework recommendations for web service?

2008-07-16 Thread Ivan Ven Osdel
What we *do* need is a lightweight, simple framework that will allow
us to create a RESTful interface and throw code together fast. We'll
probably go with SQLObject (unless we can extract the ORM from django
- lazy evaluation would be very useful), and we're just looking for
something fast and light to sit between that and the thrift interfaces
we'll create.

So, can anyone suggest a lightweight python framework which just does
the essentials?

Have you looked at CherryPy? It's very simple to get up and running and can be 
changed to go through Apache if you need it to be fast. 

I don't think RESTful interfaces are built in but I know people have 
succesfully built RESTful apps on top of CherryPy. Also plans for REST in 
CherryPy 3 look promising. Here is a post I ran across from one of the 
contributers.

Hey there,

CherryPy 3 is currently under brainstorming before being first draft. There 
some feature we do want such as the ability to change the URL dispatching at 
will depending on what is required for a given application.

One dispatching rule I do want is the one based on HTTP verbs. So it might take 
a few months to get there but eventually it will be a built-in :)

- Sylvain


-- 
Ivan Ven Osdel
Senior Software Engineer
http://datasyncsuite.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: Framework recommendations for web service?

2008-07-16 Thread Ivan Ven Osdel
I don't think RESTful interfaces are built in but I know people have 
succesfully built RESTful apps on top of CherryPy. Also plans for REST in 
CherryPy 3 look promising. Here is a post I ran across from one of the 
contributers.

Hey there,

CherryPy 3 is currently under brainstorming before being first draft. There 
some feature we do want such as the ability to change the URL dispatching at 
will depending on what is required for a given application.

One dispatching rule I do want is the one based on HTTP verbs. So it might 
take a few months to get there but eventually it will be a built-in :)

- Sylvain

My apologies, it appears that post was from 2006!

-- 
Ivan Ven Osdel
Senior Software Engineer
http://datasyncsuite.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: Framework recommendations for web service?

2008-07-16 Thread Massimo Di Pierro
web2py (not to be confused with web.py although both of them are  
excellent) comes with XMLRPC, XML, JSON and RSS API. You can find an  
XMLRPC example here:


http://mdp.cti.depaul.edu/examples/default/examples#xmlrpc_examples

The web2py source (including the optional web based interface) fits  
in 1.3MBytes.


Massimo


 Phillip B Oldham wrote:
  So, can anyone suggest a lightweight python framework which just  
does

  the essentials?

 web.py is pretty slim (not to be confused with web2py).

 Pylons isn't very large, depending on what you call essential.

--
http://mail.python.org/mailman/listinfo/python-list

Re: Framework recommendations for web service?

2008-07-16 Thread Larry Bates

Phillip B Oldham wrote:

We're looking at the next phase of development for our webapp, and the
main focus will be to move the core from the app to a web service so
other systems can use the data we've gathered (we're thinking along
the lines of the XML API of Highrise from 37Signals).

Its possible that we'll extend the service to allow access via vanilla
XML, JSON, and YAML at some point, however we've decided to use
Facebook's Thrift for connectivity initially to support as many techs
as possible and also because our web interface for the app is written
in PHP.

As we're extracting the core we'll be translating it to Python to make
use of the wealth of well-structured libraries and hopefully make the
project shorter. However, we've hit a snag in choosing a framework
around which to rebuild the service.

It seems the more popular frameworks (django, turbogears) are all
focused on providing web content. Since our core will be using thrift
to communicate, we don't need templating, feeds, admin pages (django),
or ajax (turbogears).

What we *do* need is a lightweight, simple framework that will allow
us to create a RESTful interface and throw code together fast. We'll
probably go with SQLObject (unless we can extract the ORM from django
- lazy evaluation would be very useful), and we're just looking for
something fast and light to sit between that and the thrift interfaces
we'll create.

So, can anyone suggest a lightweight python framework which just does
the essentials?


You want thin and fast with little cruft and a focus on interfaces, look at 
Twisted.

-Larry
--
http://mail.python.org/mailman/listinfo/python-list