[Twisted-web] CorePost - a tiny Flask-style REST microframework for twisted.web

Glyph Lefkowitz glyph at twistedmatrix.com
Thu Aug 25 15:40:16 EDT 2011

On Aug 25, 2011, at 2:55 PM, Jacek Furmankiewicz wrote:

> Hi,
> I'd like to announce the very first alpha release of CorePost,
> a tiny REST microframework on top of the core twisted.web APIs.
> http://pypi.python.org/pypi/CorePost/0.0.1
> it's design is heavily inspired by Flask, for easy creation of REST services.
> 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, <https://launchpad.net/tx>.

> Cheers,
> Jacek
> P.S. I plan to look at integrating twisted.internet.processes
> http://pypi.python.org/pypi/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.internet.)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20110825/8ca34c16/attachment.htm 

More information about the Twisted-web mailing list