Skip to content

Instantly share code, notes, and snippets.

View iandanforth's full-sized avatar

Ian Danforth iandanforth

View GitHub Profile
@iandanforth
iandanforth / batch-import.py
Created November 29, 2012 21:40 — forked from ajcronk/batch-import.py
Python CSV batch import example
import dateutil.parser
import optparse
import csv
import tempodb
from threading import Thread
from Queue import Queue
class Worker(Thread):
"""Thread executing tasks from a given tasks queue"""