Skip to content

Instantly share code, notes, and snippets.

@mhansen
Last active October 27, 2017 09:42
Show Gist options
  • Save mhansen/561e12770a95466258bb9f7975888651 to your computer and use it in GitHub Desktop.
Save mhansen/561e12770a95466258bb9f7975888651 to your computer and use it in GitHub Desktop.
Converts from KeepassX exported CSV to 1Password CSV
import pandas
f = pandas.read_csv("keepass_export.csv")
f = f[f["Group"] != "Root/Recycle Bin"]
f2 = pandas.DataFrame()
f2["title"] = f["Title"]
f2["website"] = f["URL"]
f2["username"] = f["Username"]
f2["password"] = f["Password"]
f2["notes"] = f["Notes"]
f2.to_csv("1pw_import.csv", index=False, header=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment