librelist archives

« back to archive

wsgid - A WSGI handler for mongrel2

wsgid - A WSGI handler for mongrel2

From:
Dalton Barreto
Date:
2011-04-10 @ 18:53
Hello,

I'm here to announce my new project, it's another mongrel2 wsgi
gateway. Wsgid [1] aims to be a complete daemon environment for WSGI
applications, with start/stop/reload functionalities.

This first version (0.1) is already usable and has some great
features, as follows:

- Start any number of worker processes (--workers=N)
- Automatically restarts any dead worker (--keep-alive)
- Auto reload application code, when restarting a worker
- Plugable Application Loader interface: wsgid uses a plugin system
that lets you write your own application loader. For now it already
loads django and pyroutes applications, but adding support for any
other WSGI framework should be fairly easy.

The official docs are on the project's website, that is self hosted
using mongrel2-1.5 and wsgid-0.1.

For wsgid specific discussion, the mailing list is at
wsgid@librelist.com. Thanks Zed!

If anyone is interested in the project, I would appreciate your feedbacks.

Congratulations for your great work on mongrel2, it's awesome.

Thank you,

[1] http://wsgid.com

-- 
Dalton Barreto
http://daltonmatos.wordpress.com

Re: [mongrel2] wsgid - A WSGI handler for mongrel2

From:
Ryan Kelly
Date:
2011-04-10 @ 22:09
On Sun, 2011-04-10 at 15:53 -0300, Dalton Barreto wrote:
> Hello,
> 
> I'm here to announce my new project, it's another mongrel2 wsgi
> gateway. Wsgid [1] aims to be a complete daemon environment for WSGI
> applications, with start/stop/reload functionalities.
> 
> This first version (0.1) is already usable and has some great
> features, as follows:
> 
> - Start any number of worker processes (--workers=N)
> - Automatically restarts any dead worker (--keep-alive)
> - Auto reload application code, when restarting a worker
> - Plugable Application Loader interface: wsgid uses a plugin system
> that lets you write your own application loader. For now it already
> loads django and pyroutes applications, but adding support for any
> other WSGI framework should be fairly easy.

Looks nice!  This whole handler-as-daemon thing is a great strength of
mongrel2.

If I may make a rather self-serving suggestion, would you consider using
my m2wsgi package for the lower-level wsgi interface?  It's got support
for some advanced features of HTTP like streaming reads of large
uploads, chunked response encoding, and gzip content encoding.

m2wsgi also has a rudimentary daemonization framework of its own, but
wsgid appears much more solid in that regard.  Great work, I look
forward to taking it for a spin.


  Cheers,

     Ryan


-- 
Ryan Kelly
http://www.rfk.id.au  |  This message is digitally signed. Please visit
ryan@rfk.id.au        |  http://www.rfk.id.au/ramblings/gpg/ for details

Re: [mongrel2] wsgid - A WSGI handler for mongrel2

From:
Dalton Barreto
Date:
2011-04-11 @ 13:20
2011/4/10 Ryan Kelly <ryan@rfk.id.au>:
> On Sun, 2011-04-10 at 15:53 -0300, Dalton Barreto wrote:
>> Hello,
>>
>> I'm here to announce my new project, it's another mongrel2 wsgi
>> gateway. Wsgid [1] aims to be a complete daemon environment for WSGI
>> applications, with start/stop/reload functionalities.
>>
>> This first version (0.1) is already usable and has some great
>> features, as follows:
>>
>> - Start any number of worker processes (--workers=N)
>> - Automatically restarts any dead worker (--keep-alive)
>> - Auto reload application code, when restarting a worker
>> - Plugable Application Loader interface: wsgid uses a plugin system
>> that lets you write your own application loader. For now it already
>> loads django and pyroutes applications, but adding support for any
>> other WSGI framework should be fairly easy.
>
> Looks nice!  This whole handler-as-daemon thing is a great strength of
> mongrel2.
>
> If I may make a rather self-serving suggestion, would you consider using
> my m2wsgi package for the lower-level wsgi interface?  It's got support
> for some advanced features of HTTP like streaming reads of large
> uploads, chunked response encoding, and gzip content encoding.
>

Sure! I had already read your code and was impressed with this
features. it will be
great to use them in wsgid, this will make wsgid even better. For sure
I will take a closer look to this
so I can reuse your code.

> m2wsgi also has a rudimentary daemonization framework of its own, but
> wsgid appears much more solid in that regard.  Great work, I look
> forward to taking it for a spin.

That's Great! Thank you. Let me know what you think about it. Don't
forget to join the wsgid mailing list,
so we can discuss about the project there.

-- 
Dalton Barreto
http://daltonmatos.wordpress.com
http://wsgid.com