Skip to content

Instantly share code, notes, and snippets.

### 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:
#!/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):