[BangPypers] UI less Rest API server with flask

anu sree anusree.a04 at gmail.com
Mon Jun 22 11:55:14 CEST 2015


Thanks anuvrat,

My first question was, Should I use only flask to develop REST API like in
this example https://github.com/miguelgrinberg/api-pycon2015

or fask + flask_restful ?


On Mon, Jun 22, 2015 at 3:00 PM, Anuvrat Parashar <anuvrat at anuvrat.in>
wrote:

> On Mon, Jun 22, 2015 at 2:06 PM, anu sree <anusree.a04 at gmail.com> wrote:
>
> > Hi,
> >
> > I want to develop an API server (don't need GUI).
> > I am planning to use flask to develop this UI less API server.
> >
> > Question-1:
> > I have seen an example here
> > https://github.com/miguelgrinberg/api-pycon2015
> > But above example does not use flask_restful extension.
> > Here I need your help to take decision, Should I use with flask_restful
> > extension ?
> >
>
> There are quite a few extensions for making restful apis - flask-restful,
> flask-restless etc ...
> While researching also consider python-eve
> https://github.com/nicolaiarocci/eve
>
>
> > what are the benefits of using flask_restful extension?
> >
> > Question-1:
> > When I start or restart api server, it should fetch huge data from
> > somewhere (Eg:database) and process it in separate thread (it also make
> > some rest api call different services during the processing).
> > I am planning to create a thread inside the api server using *gevent* to
> do
> > this while starting the api server, is it right decision?
> > This fetching and processing of data should not affect the other
> operation
> > of the API server, that is I should able to make rest api call
> > to api server while it fetching and processing the data.
> >
>
> For this deferred processing too you have various options namely: gevent,
> celery, twisted etc ...
>
> Sharing more information on what you are trying to accomplish would enable
> people here to suggest better solutions.
> Peace.
>
> >
> > Thanks,
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers at python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
>
>
>
> --
> Anuvrat Parashar <http://anuvrat.in>
> http://anuvrat.in
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list