Skip to content

Instantly share code, notes, and snippets.

View alex-r-bigelow's full-sized avatar

Alex Bigelow alex-r-bigelow

View GitHub Profile
@alex-r-bigelow
alex-r-bigelow / csvBoilerplate.py
Created February 24, 2017 17:13
Basic boilerplate for parsing a csv file
#!/usr/bin/env python
import csv
import argparse
parser = argparse.ArgumentParser(description='Boilerplate for ' +
'processing a CSV file')
parser.add_argument('-i', '--input', dest='input', default='input.csv',
help='The input file (default=input.csv)')
parser.add_argument('-o', '--output', dest='output', default='output.csv',
help='The output file')