Sending a message over Jabber from Python is a simple task. Let’s install Python Jabber/XMPP implementation called pyxmpp2:
python-pip install pyxmpp2
Now download client example:
wget https://raw.github.com/Jajcus/pyxmpp2/master/examples/send_message_client.py
And run:
python send_message_client.py
After you enter all data a message will be sent.