skip to navigation
skip to content

Not Logged In

PyTox 0.0.6

Python binding for Tox the skype replacement

Latest Version: 0.0.15


Python binding for Project Tox.

PyTox provides a Pythonic binding, i.e Object-oriented instead of C style, raise exception instead of returning error code. A simple example is as follows:

class EchoBot(Tox):
    def loop(self):
        while True:

    def on_friendrequest(self, pk, message):
        print 'Friend request from %s: %s' % (pk, message)
        print 'Accepted.'

    def on_friendmessage(self, friendId, message):
        name = self.getname(friendId)
        print '%s: %s' % (name, message)
        print 'EchoBot: %s' % message
        self.sendmessage(friendId, message)

As you can see callbacks are mapped into class method instead of using it the the c ways. For more details please refer to examples/


  • A working echo bot that wait for friend requests, and than start echoing anything that friend send.


Full API documentation can be read here.


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
File Type Py Version Uploaded on Size
PyTox-0.0.6.tar.gz (md5) Source 2013-12-06 21KB
  • Downloads (All Versions):
  • 62 downloads in the last day
  • 1681 downloads in the last week
  • 4409 downloads in the last month