Re: little_pger.py (a thin layer a tad above SQL and psycopg2)

From: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
To: "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: little_pger.py (a thin layer a tad above SQL and psycopg2)
Date: 2012-12-19 16:53:18
Message-ID: 20121219165318.GB15230@campbell-lange.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: psycopg

On 19/12/12, A.M. (agentm(at)themactionfaction(dot)com) wrote:
> ...I, too, have been looking for something lightweight and quick which
> would allow nearly-automatic JSON generation from database rows. The
> trickier part is recursing a model attribute tree which always leads
> me back to SQLAlchemy.

Since psycopg can return namedtuples and simplejson serialises
namedtuples, this should not be a difficult thing to do.

Rory

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message A.M. 2012-12-19 16:56:35 Re: little_pger.py (a thin layer a tad above SQL and psycopg2)
Previous Message A.M. 2012-12-19 16:29:27 Re: little_pger.py (a thin layer a tad above SQL and psycopg2)