Could "green" Psycopg work together with Diesel?

2 views
Skip to first unread message

Daniele Varrazzo

unread,
Apr 21, 2010, 12:00:57 PM4/21/10
to diesel users
Hello,

I'm working on a psycopg2 patch that should enable it to use
nonblocking I/O in conjunction with coroutine libraries. A description
about how it works and example integration with eventlet and gevent
libraries is available on http://bitbucket.org/dvarrazzo/psycogreen/

I was wondering if the same technique could be used to provide
integration with Diesel too (which doesn't use greenlets). Intuitively
it seems so, but I don't know Diesel enough to be sure. The only
requirement would be to create a wait callback similar to [1] (gevents
implementation).

I'm interest in some feedback in order to know if the current psycopg
interface is good for Diesel too or if some change that would make the
system more flexible would be required. If you provide such callback
I'd be happy to add it to the "psycogreen" project (or you could just
implement it and include in your project if you want: psycogreen is a
project only meant to suggest a reference implementation and a base
for testing).

Regards,

-- Daniele

[1] http://bitbucket.org/dvarrazzo/psycogreen/src/tip/gevent/psyco_gevent.py


--
Subscription settings: http://groups.google.com/group/diesel-users/subscribe?hl=en
Reply all
Reply to author
Forward
0 new messages