Based on the efforts by Chris van Marle.
After cloning the repository, you can create a virtual environment, build and install the library via:
make prepare install-wheel
import gaeh
url = 'otpauth-migration://offline?data=CjMKFDFENjc5QzE3RTkzRTJFRTAyMkZBEgl0ZXNzZXJhY3QaCm11bHRpdmVyc2UgASgBMAIQARgBIAA%3D'
accounts = gaeh.export_otp_accounts(url)
print(accounts)
Example result:
{'version': 1, 'batch_size': 1, 'batch_index': 0, 'batch_id': 0, 'accounts': [{'key': 'GFCDMNZZIMYTORJZGNCTERKFGAZDERSB', 'name': 'tesseract', 'issuer': 'multiverse', 'algorithm': 'SHA1', 'digits': 'SIX', 'type': 'TOTP', 'counter': 0}]}
Checkout gabut for a comprehensive cli tool for managing google authentictor backups using gaeh.