import datetime from pandas import DataFrame import numpy as np import operator import fnmatch import csv import MySQLdb as mdb from scipy.stats.kde import gaussian_kde import scipy.stats as ss import math sys.path.append("/home/clarkg/PythonSite/") from DBwrap import MDB as dbw from FlowClass.Regex import rgx from FlowClass.FlowUtils import FlowUtilities,FlowData import glob dbins=dbw() nx=FlowUtilities() ###################################################### # # # # # UU UU SSSS AA GGGG EEEEE # # UU UU SS A A G E # # UU UU $$$$ AAAAAAA G GGG EEEEE # # UU UU $$ A A G G E # # UUUU $$$$ A A GGGG EEEEE # # # # # # python CreateSpreadSheets.py 2014.csv # ######################################################
#!/usr/bin/env python import string, re, sys from DBwrap import MDB as dbw import MySQLdb as mdb ins = dbw() #m=ins.connect(db_env='PROD') m = ins.connect(db_env='PROD', local_db='impc') if m: cnx, cur = m else: print "Error connecting to Database" sys.exit() print cnx, cur