file_data = "test" gpg = gnupg.GPG(gnupghome="/tmp") import_result = gpg.import_keys(pub_key) #string that is a pgp yet print(import_result.fingerpri