XMPP Poetry At The Comand Line

September 30, 2008

There is an unfortunate lack of command line tools for interacting with XMPP services. Sure we have things like sendxmpp, but where are the tools like DNS’s dig or HTTP’s curl? Inspired by Wokkel, I’ve decided to start making some basic tools. Please welcome Poetry to the world, a collection of small tools for interacting with XMPP from the command line.

:EXTENDED:

A Small Start

Currently I have two tools in the works, but I hope to add more based on user feedback and my own personal needs. You can grab the latest code at the Poetry Launchpad page and start playing around with them. These tools are based on Ralph Meijer’s Wokkel project. You will need Python 2.5, Twisted 8.x and the latest Wokkel release in order to use these tools.

disco Is Not Dead

The first tool is called disco, and it is all about service discovery. Do you want to find out what services are supported at your server:

$ disco --info user@host - jabber.org
DISCO INFO FOR jabber.org:
  IDENTITIES:
    anonymous (category: pubsub, type: pep)
    ejabberd (category: server, type: im)
  FEATURES:
    commands
    disco#info
    disco#items
    disco#publish
    http://ejabberd.jabberstudio.org/protocol/configure
...

You can also use disco --items to find what other services are available. disco --recursive --info --items is also planned but not currently working. It will show the information for the current resource, then enumerate the items and show their information recursively.

This is great for checking which XMPP PubSub features are supported by your favorite server.

pubsub-config Makes A Great Node

The second tool is pubsub-config. This tool creates, configures, and displays the configuration of pubsub nodes.

Currently, pubsub-config is not yet fully operational, although it can already create pubsub nodes. I’m still working out the kinks of the pubsub node configuration form. Feel free to pitch in and help!

Future Ideas

I can think of a lot of tools that would be useful:

Please download the code and give it a try. If you have ideas for more tools, please share them in the comments.

XMPP Poetry At The Comand Line - September 30, 2008 - Jack Moffitt