Python library to control i3wm and sway
i3's interprocess communication (or ipc) is the interface i3wm uses to receive commands from client applications such as i3-msg. It also features a publish/subscribe mechanism for notifying interested parties of window manager events.
Homepage: https://github.com/altdesktop/i3ipc-python/