Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'frameworks': 0.05; 'postgresql': 0.07; 'python': 0.09; 'blocking': 0.09; 'currently,': 0.09; 'frameworks.': 0.09; 'friday,': 0.09; 'modes': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'extension': 0.13; 'async': 0.16; 'low-level': 0.16; 'threads': 0.16; 'twisted': 0.16; 'wrote:': 0.17; '31,': 0.22; 'effort.': 0.22; 'operations.': 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'easiest': 0.27; 'integrate': 0.27; 'mind.': 0.27; 'i/o': 0.29; 'code': 0.31; 'point': 0.31; 'could': 0.32; 'received:google.com': 0.34; 'protocol': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'next': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:( 30': 0.38; 'easier': 0.38; 'some': 0.38; 'received:209.85.214': 0.39; 'august': 0.66; 'drivers': 0.71; 'nagy': 0.84; 'received:209.85.214.184': 0.84; 'received :mail-ob0-f184.google.com': 0.84; 'route': 0.84 Newsgroups: comp.lang.python Date: Sat, 1 Sep 2012 16:57:13 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=67.180.20.82; posting-account=lYNdCAoAAACR7-wN54pFEFLqzIpaqRgA References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 67.180.20.82 MIME-Version: 1.0 Subject: Re: Async client for PostgreSQL? From: jwp To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346543837 news.xs4all.nl 6945 [2001:888:2000:d::a6]:40660 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28223 On Friday, August 31, 2012 10:17:18 PM UTC-7, Laszlo Nagy wrote: > Is there any extension for Python that can do async I/O for PostgreSQL=20 As others point out, the easiest route is using one of the blocking drivers= with threads and "emulate" async operations. However, the low-level parts of py-postgresql (python.projects.postgresql.o= rg) were designed with arbitrary modes in mind. That is, the protocol code = is independent of the transport so that it could be used with frameworks li= ke twisted given some effort. Much of the work that will go into py-postgre= sql over the next couple years will be to make it easier to integrate into = arbitrary frameworks. Currently, I suspect it would require some "heavy lif= ting".. =3D\ cheers, github.com/jwp