headstock

Latest version: 0.1.0 (development)

This page is updated for headstock 0.1.0

What is it?

A Python library to handle the XMPP protocol and extensions.

Download it

Requirements

Both Axon and Kamaelia need to be checked out to work with headstock.

Example

headstock source code comes with a simple chat example that illustrates the usage of headstock. It's not GUI bound as it just demonstrates how to setup headstock.

To run that example and assuming you've installed the requirements:

# Registering a new user (if the server supports XEP-0077 of in-band registration)
python simplechat.py -u username -p password -d XMPPdomain -a hostname:port --register 

# Signing in
python simplechat.py -u username -p password -d XMPPdomain -a hostname:port

You ought to install ejabberd before hand if you don't have an XMPP server at hand. I run it as a regular user in my home directory.

You might want to try to connect to Google Talk:

python simplechat.py -u gmail_user -p gmail_password -d gmail.com -a talk.google.com:5222 --usetls

To send a message to a contact type in the console:

contact_email a message

See also