This is Python version of Jabber Roster Utility with some additional features like specifying connection host and port, ability to find host from domain's SRV records, using AJAX requests and more. It is written using SleekXMPP library.
With this tool, you can manage your Jabber roster: add, remove and alter items in a large scale.
Install SleekXMPP and optionally dnspython (read more about installation of both here):
pip install sleekxmpp pip install dnspython
Grab pyJRU from github: https://github.com/barszczmm/pyJRU/tarball/master
As command line tool:
For getting roster and printing it to stdout:
cd pyjru python jabber.py jid passwordFor updating roster from stdin:
cd pyjru python jabber.py jid password < roster_fileCheck more options:
cd pyjru python jabber.py --help
As web tool:
You can easily run simple server that serves web application:
cd pyjru python server.pyCheck more options:
cd pyjru python server.py --help
Serving application for public:
You should not use above method if you want to serve this app somewhere on the web so anyone can use it. For this you should use some application server that can serve wsgi applications. There are sample configuration files for uwsgi and nginx setup in hosting_conf
directory.
Try it here.
- Main Author: Maciej 'barszcz' Marczewski
- www.barszcz.info