@JoergSorge not really a library but weechat is written in python and there are ton's of plugins for jabber there is jabber.py - python also probably has solid gpg libs - gajim has omemo support and is written in python - however I'm afraid you have to duct-tape something together out of these sources, but maybe worth a look.
@JoergSorge gajim is python, and has oemo and opengpg plugins - https://dev.gajim.org/gajim/gajim-plugins/tree/master/omemo - probably the easiest way to hack something together
social.bau-ha.us is your friendly neighbourhood Mastodon instance!
Proudly presented by Maschinenraum Weimar .
This is a small instance with a focus on community. Feel free to join, but please be aware that there are some rules (in short: don't be a bunghole. Check the link for our definition of "being a bunghole".).
Primary languages are German and English.
Be excellent to each other! (J.W.v.Goethe, 1932) [[Citation needed]]