Note also that if you'd rather use a package, and don't mind a different API, python-gnupg is an option. It has a python3-gnupg version too.
Note also that if you'd rather use a package, and don't mind a different API, python-gnupg is an option. It has a python3-gnupg version too.