Questions tagged [xmpppy]

xmpppy is a Python library that provides support for the XMPP protocol (Jabber).

xmpppy is a XMPP Python library that is targeted to provide easy scripting with the XMPP protocol (Jabber).

The library was not designed from scratch. It inherits some code from jabber.py and have very similar API in many places. Though it is separate project since it have almost completely different architecture and primarily aims to work with jabberd2 - the new Open Source Jabber Server.

xmpppy is distributed under the terms of GNU General Public License and can be freely redistributed without any charge.

60 questions
7
votes
2 answers

How to create MUC and send messages to existing MUC using Python and XMPP

I was wondering if anyone here can provide some code samples on the following scenarios. I'm particularly interested in using xmpppy to do this as I'm already using the library for my app, but other libraries ok too. It is unfortunate that the…
David
  • 3,223
  • 3
  • 29
  • 41
6
votes
2 answers

python xmpp simple client error

I'm getting the following error: AttributeError: Client instance has no attribute 'Dispatcher' while running the following code in python 2.7: import xmpp user= 'uname@gmail.com' password="pass" jid = xmpp.JID(user) connection =…
rok
  • 9,403
  • 17
  • 70
  • 126
5
votes
2 answers

Determine if an XMPP user is online or not

I'm using the xmpppy library to write an XMPP client that can chat with users. It has its own XMPP user account and needs to know if a given user is online. However, the documentation is a bit sparse on how to do this. What would you recommend? The…
Chris Bunch
  • 87,773
  • 37
  • 126
  • 127
4
votes
3 answers

Jabber bot - how to get the availability of contacts?

I need to set up a jabber bot, using python, that will send messages based on the online/offline availability of several contacts. I've been looking into pyxmpp and xmpppy, but couldn't find any way (at least nothing straightforward) to check the…
GJ.
  • 5,226
  • 13
  • 59
  • 82
3
votes
2 answers

xmpppy and Facebook Chat Integration

I'm trying to create a very simple script that uses python's xmpppy to send a message over facebook chat. import xmpp FACEBOOK_ID = "username@chat.facebook.com" PASS = "password" SERVER =…
Craig Liamson
  • 65
  • 1
  • 4
3
votes
2 answers

How do I disconnect my XMPPPY client object

Connecting to an XMPP server with XMPPPY is simple. from xmpp.client import Client as XMPPClient self.xmppClient = XMPPClient("jabber.foo.com") if not self.xmppClient.connect(server="localhost"): raise IOError('Cannot connect to server.') if…
3
votes
1 answer

Sending XHTML over Jabber using xmpppy

I'm trying to send XHTML (a hyperlink) over Jabber (to Google Talk) using xmpppy, but can't find a good working example... I tried with this: http://intertwingly.net/blog/2007/08/09/Sending-XHTML-over-Jabber But didn't work... any ideas?? Thanks in…
Neurus
  • 657
  • 4
  • 27
3
votes
2 answers

Referring a currently open XMPP connection from another python script present inside a django server

My application server's requirements are as follows: Receive sensor data from mobile phones (using HTTP) Process them (python libraries) Send notification to the mobile devices (rendered as notifications on Android devices) Implementation…
Geekster
  • 491
  • 1
  • 8
  • 19
3
votes
0 answers

Getting a GCM registration ID on a desktop client

I am trying to register a client python script on a desktop so it can act like its an adroid device to receive data. I am using xmpppy, and I am able to talk with the connection server, but I need to request a registration id based of my sender ID.…
3
votes
1 answer

Can I add xmpp python library to my google app engine server

I'm trying to send messages between xmmp clients using gogle app engine as a server, for that reason I prefer to use xmpp library for python (xmpppy) instead the xmpp library of the google app engine API. Can I add the xmpp python library to my…
Carolina Q.
  • 43
  • 1
  • 5
2
votes
0 answers

Unable to connect to Facebook Chat Via Python, using xmpppy library

I am trying to write a script in python to connect to facebook chat. I am just not able to. Here is the code import xmpp FACEBOOK_ID = "username1@chat.facebook.com" PASS =…
firesofmay
  • 582
  • 1
  • 3
  • 16
2
votes
2 answers

In Python, how to catch the exception you've just raised?

I've got this piece of code: jabberid = xmpp.protocol.JID(jid = jid) self.client = xmpp.Client(server = jabberid.getDomain(), debug = []) if not self.client.connect(): raise IOError('Cannot connect to…
Andrii Yurchuk
  • 3,090
  • 6
  • 29
  • 40
2
votes
1 answer

Sending message via Python + xmpppy: AttributeError in minimal example

I found in a related question a minimal example to send a message via xmpp(py); see below. But when I execute the script I get the following error: client = xmpp.Client('gmail.com') AttributeError: 'module' object has no attribute 'Client' I'm…
Christian
  • 3,239
  • 5
  • 38
  • 79
2
votes
0 answers

Connecting python to league of legends chat through xmpp

I am trying to connect python to my league of legends chat (brazilian server) interface to try to run some automatic responses to pings and etc. But I'm not finding success. This is the code I'm running in python Python 3.7.7…
Hofmann
  • 49
  • 2
2
votes
3 answers

Facebook Chat Bot using Google App Engine

I digged much into internet, but being newbie, couldn't do much. I have summed up the following : Facebook Chat can be used via two Authentication (via Facebook Chat API official documentation) : 1> X-FACEBOOK-PLATFORM 2> DIGEST-MD5 1>…
atx
  • 41
  • 6
1
2 3 4