I've been working on a project with django-tastypie (http://tastypieapi.org/) the last couple days. It's making it really easy to create RESTful web services that output JSON. Basically all you do is write your data models like you normally would with django, write classes that inherit tastypie.resources.ModelResource for your models, then add a few lines to your URLconf to hook everything together.
Matt McCollow
Programmer
Sherman Centre for Digital Scholarship, McMaster University
On 2012-07-10, at 8:17 PM, Michael J. Giarlo wrote:
> I've never used Flask, but it looks quite slick and simple (compared
> with Django). It makes use of some other components (werkzeug, jinja,
> etc.) so your Flask skills could be repurposed.
>
> Depending on your operational environment, it may not be, uh,
> "enterprise-y" enough for some folks.
>
> -Mike
>
>
> On Tue, Jul 10, 2012 at 8:12 PM, Andrew Hankinson
> <[log in to unmask]> wrote:
>> Have a look at Tornado:
>>
>> http://www.tornadoweb.org/
>>
>> It's our default "get something up and running quickly" Python framework.
>>
>> -Andrew
>>
>> On 2012-07-10, at 8:05 PM, William Denton wrote:
>>
>>> I have a fairly basic web service I want to hack on that would manage some stuff (not too much) and feed out JSON in response to request. I'd like to do it in Python so I can get to know the language.
>>>
>>> StackOverflow is filled with comparisons of Python web frameworks, but I wanted to get the sense from all the Python hackers here about what framework might be a good one given their personal experiences.
>>>
>>> Django is very full-featured and well documented, and would make a complex project simple, but I think has more than I need; Flask looks pretty simple and could suit the basic service I want to do; web2py looks pretty rich.
>>>
>>> I know this isn't a particularly answerable question and the best thing to do is to try one and hack on it, and do it right the second time, but since future Python work might involve RDF and linked data, and there are so many Python people here whose opinion I value, I thought I'd throw it out.
>>>
>>> Thanks,
>>>
>>> Bill
>>> --
>>> William Denton
>>> Toronto, Canada
>>> http://www.miskatonic.org/
|