Lexia Hacks Github May 2026
Lexia is a powerful reading platform that provides a range of tools and resources to support learners. By customizing your reading plan, using the Lexia app, taking advantage of teacher and parent resources, using Lexia with other tools and resources, and staying motivated and engaged, you can get the most out of the platform and achieve your reading goals. Happy reading!
# export-cleaner.py
# Lightweight CSV cleaner for Lexia-like exports: anonymize, normalize column names, save sanitized CSV.
import csv
import sys
import hashlib
if len(sys.argv) < 3:
print("Usage: python export-cleaner.py input.csv output.csv")
sys.exit(1)
infile, outfile = sys.argv[1], sys.argv[2]
def anonymize(value):
return hashlib.sha256(value.encode('utf-8')).hexdigest()[:10]
with open(infile, newline='', encoding='utf-8') as fin, open(outfile, 'w', newline='', encoding='utf-8') as fout:
reader = csv.DictReader(fin)
fieldnames = [f.strip().lower().replace(' ', '_') for f in reader.fieldnames]
writer = csv.DictWriter(fout, fieldnames=fieldnames)
writer.writeheader()
for row in reader:
newrow = {}
for k, v in row.items():
key = k.strip().lower().replace(' ', '_')
if key in ('student_name', 'student_id', 'email'):
newrow[key] = anonymize(v or '')
else:
newrow[key] = v
writer.writerow(newrow)
print("Sanitized CSV written to", outfile)