Skip to content

Instantly share code, notes, and snippets.

@muness
Last active August 29, 2015 14:12
Show Gist options
  • Save muness/54a421df1263abff0e5e to your computer and use it in GitHub Desktop.
Save muness/54a421df1263abff0e5e to your computer and use it in GitHub Desktop.
Passpack to Lastpass format converter
#!/usr/bin/python
# Based on https://plus.google.com/+TonyScelfo/posts/LvuRq9mToR1
import csv
in_file = open('in.csv', 'rb')
out_file = open('out.csv', 'wb')
reader = csv.reader(in_file, delimiter=',', quotechar='"')
writer = csv.writer(out_file, delimiter=',', quotechar='"')
writer.writerow(['url','username','password','extra','name','grouping','fav'])
for row in reader:
writer.writerow([row[3], row[1], row[2], row[5], row[0], row[4], ''])
in_file.close()
out_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment