title: Recreating Postgres COPY directly in Python?
body: <p>I have a block of data, currently as a list of n-tuples but the format is pretty flexible, that I'd like to append to a Postgres table - in this case, each n-tuple corresponds to a row in the DB.</p>
  
  <p>What I had been doing up to this point is writing these all to a CSV file and then using postgres' COPY to bulk load all of this into the database.  This works, but is suboptimal, I'd prefer to be able to do this all directly from python.  Is there a method from within python to replicate the COPY type bulk load in Postgres?</p>