pickle_to_csv_singer.py 273 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import csv, pickle from singer import * data = [] with open('./data/singer.pickle', 'rb') as f: data = pickle.load(f) f = open('./data/singer.csv', 'w', newline='', encoding='UTF-8') wr = csv.writer(f) for singer in data: wr.writerow(singer.getRow()) f.close()