[Twisted-web] CorePost - a tiny Flask-style REST microframework for twisted.web
jacek99 at gmail.com
Thu Aug 25 16:29:21 EDT 2011
- tzyoga - will look at it. I just really liked the minimal super easy API
of Flask (which in turn is probably inspired by Sinatra) and that's what I
wanted to bring to Twisted.
- spawnProcess - got it. Will look into that
thank you for your feedback
On Thu, Aug 25, 2011 at 3:40 PM, Glyph Lefkowitz <glyph at twistedmatrix.com>wrote:
> On Aug 25, 2011, at 2:55 PM, Jacek Furmankiewicz wrote:
> I'd like to announce the very first alpha release of CorePost,
> a tiny REST microframework on top of the core twisted.web APIs.
> it's design is heavily inspired by Flask, for easy creation of REST
> Looking forward to any comments and suggestions.
> It's my first attempt at any serious Twisted programming, so be gentle with
> your comments :-)
> Cool! I don't have any comments just yet, but I wanted to quickly say
> thanks for doing this :-).
> The only similar project I've heard of is <https://github.com/lvh/txyoga>
> - any idea about comparing / contrasting?
> Also, as I've been suggesting to a few other people recently, you may find
> it useful to register your project on Launchpad and add it to the 'tx' group
> so that it appears in the list we frequently refer new Twisted users to, <
> P.S. I plan to look at integrating twisted.internet.processes
> in the near future to enable scaling to all cores on a multi core machine.
> using its deferToProcess()
> functionality. Any suggestions from seasoned Twisted developers on whether
> that is the correct approach
> would be appreciated.
> I would suggest using something based on spawnProcess instead. There are a
> number of issues with multiprocessing itself, and this package says right
> there on the PyPI page that it has no tests. Not to mention that it calls
> multiprocessing in a thread. If you're using synchronous / blocking I/O in
> Python, you have no choice but to do some of the awful stuff multiprocessing
> does, but Twisted's spawnProcess is much cleaner and integrates efficiently
> with asynchronous I/O, especially on Linux and MacOS.
> <https://launchpad.net/ampoule> is one option you may want to consider.
> (Not to mention the fact that it is confusingly named; it is not part of
> twisted.internet and in fact does not even use the process support in
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-web