I agree, this should be fixed. It's possible. But needlessly difficult. I don't have python code for this, but this is how gpg-bash-lib [1] (written by me) does it. Should give you an idea how the import command could look like.
gpg_bash_lib_internal_primary_key_fingerprint="$(gpg_bash_lib_function_key_file_to_first_primary_fingerprint "$gpg_bash_lib_internal_key")" echo "$gpg_bash_lib_internal_primary_key_fingerprint:6:" | \ gpg \ --no-options \ --ignore-time-conflict \ --homedir "$gpg_bash_lib_input_temp_folder" \ --import-ownertrust \ 1>/dev/null \ 2>/dev/null Cheers, Patrick [1] https://github.com/Whonix/gpg-bash-lib -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org