title: Generate SQL statements with python
body: <p>I need to generate a list of insert statements (for postgresql) from html files, is there a library available for python to help me properly escape and quote the names/values? in PHP i use PDO to do the escaping and quoting, is there any equivalent library for python?</p>
  
  <p>Edit: I need to generate a file with sql statements for execution later</p>