View gist:a5ded63605b4df477b2060abb1cba444
### Keybase proof | |
I hereby claim: | |
* I am noelmas on github. | |
* I am samleon (https://keybase.io/samleon) on keybase. | |
* I have a public key ASADEyh_sSrvsMBf4As-624W-5SOlqnG2ZIBViQS8UMEDQo | |
To claim this, I am signing this object: |
View csv2sqlite.py
#!/usr/bin/env python | |
# A simple Python script to convert csv files to sqlite (with type guessing) | |
# | |
# @author: Rufus Pollock | |
# Placed in the Public Domain | |
import csv | |
import sqlite3 | |
def convert(filepath_or_fileobj, dbpath, table='data'): | |
if isinstance(filepath_or_fileobj, basestring): |