3 ms·
> 1400 lines of python that tries to pretend that an interactive program is a library is definitely a problem though. Yeah, +1 for this. The lack of a proper G
by JackC 12y ago
> 1400 lines of python that tries to pretend that an interactive program is a library is definitely a problem though.
Yeah, +1 for this. The lack of a proper GPG library is very strange.
I'm in the process of writing a Python program that interfaces with GPG right now, and I was surprised to learn there isn't an official GPG library. The closest thing seems to be GPGMadeEasy [1], which is an official library wrapper for the interactive program.
Since I need low-level key manipulation (writing out a key with known values), what I've ended up doing is using the BouncyCastle Java library[2] via a separate Java command line program my Python program can call out to. It works, but it's painful.
So, yeah -- what would be the cost/benefit of the project lmm proposes to create a real, portable GPG library? It makes a lot of sense to me.
[1] https://www.gnupg.org/%28it%29/related_software/gpgme/index.html https://www.gnupg.org/%28it%29/related_software/gpgme/index....
[2] http://bouncycastle.org/ http://bouncycastle.org/