Skip to content

Instantly share code, notes, and snippets.

@vtbassmatt
Created August 8, 2019 09:56
Show Gist options
  • Save vtbassmatt/490df124eff13ba401014f4ee69b7ca7 to your computer and use it in GitHub Desktop.
Save vtbassmatt/490df124eff13ba401014f4ee69b7ca7 to your computer and use it in GitHub Desktop.
Helvault -> Archidekt converter
"Convert Helvault CSV into Archidekt text format."
# keywords: helvault, mtg, magic the gathering, archidekt, csv, convert
import csv
with open('helvault.csv') as csvfile:
rdr = csv.DictReader(csvfile)
for row in rdr:
record = f"{row['quantity']}x {row['name']} ({row['set_code']})"
if 'foil' in row['extras']:
record = record + " *F*"
print(record)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment