Skip to content

barszczmm/pyJRU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Jabber Roster Utility

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.

Requirements

Installation

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

Usage

As command line tool:

For getting roster and printing it to stdout:

cd pyjru
python jabber.py jid password

For updating roster from stdin:

cd pyjru
python jabber.py jid password < roster_file

Check 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.py

Check 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.

Demo

Try it here.

Credits

Main Author: Maciej 'barszcz' Marczewski
www.barszcz.info

About

Python Jabber Roster Utility - add, remove and alter roster items in a large scale

Resources

Stars

Watchers

Forks

Packages

No packages published