Skip to content

Instantly share code, notes, and snippets.

@webmaniak
webmaniak / odk_qrcode.py
Last active March 17, 2021 16:47
ODK Collect: create a mobile user authentication QR Code in Python
import base64
import json
import qrcode
import qrcode.image.svg as qrsvg
import zlib
def make_odk_auth_qrcode(server_url, app_user_token, project_id):
"""
Creates a QR Code containing base server settings to connect to ODK.