def serialize_one(out, package):
 if ((not package) or package[u'name'].startswith(u'_')):
  log(u'skipping', package)
  return 0
 row = (package[u'package_manager'], package[u'name'], package[u'description'], arrayize(package[u'emails']))
 out.writerow(row)
 return 1

def serialize_one ( out , package ) : if ( ( not package ) or package [ u'name' ] . startswith ( u'_' ) ) : log ( u'skipping' , package ) return 0 row = ( package [ u'package_manager' ] , package [ u'name' ] , package [ u'description' ] , arrayize ( package [ u'emails' ] ) ) out . writerow ( row ) return 1
take a single package dict and emit a csv serialization suitable for postgres copy .