RestXMPP is a http restful XMPP client that aims to provide these functions:
- Login XMPP server using the configured jabber name and password
- Auto allow any friend requests
- Register a new Jabber user if requested
- Provide a set of rest api to provde the roster and message functions of XMPP
- Provide a callback mechanism to callback certain script when message arrived (should be a customized iq element)
You should have these configurations setup to run this client:
- An XMPP server running
- A work jabber id or let XMPP server to create a new jabber user
- Configure RestXMPP to connect to the ip and port to the XMPP server
- Configure the host and port that RestXMPP http service to listen to
- Configure the control port that RestXMPP listen(to control the server)
RestXMPP depends below libraries to provde the function:
- cement: This awesome framework provides a very nice(indeeded) cli application development foundation
- sleekxmpp: This framework provdes the foundations of XMPP services
- requests: This framework provids the http requests apis
- pydns: The dns resolving library used by sleekxmpp
You can use pip to install all of these depenencies by using this command
pip install cement xmpppy requests To start the client, you just need to run command:
./bin/xmpp start To stop the client, this command:
./bin/xmpp stop To view the status, this command:
./bin/xmpp status