Skip to content

Installation

SPADE PubSub requires Python 3.11 or later (3.11 to 3.14 are supported) and SPADE 4.2 or later, which is installed with it. It works on Linux, macOS and Windows.

Stable release

uv manages your Python projects and their dependencies. If you don't have it, see the uv installation guide. Add SPADE PubSub to your project:

uv add spade_pubsub

In a virtual environment:

pip install spade_pubsub

From the source code

The source code is on GitHub. Clone the repository:

git clone https://github.com/javipalanca/spade_pubsub.git
cd spade_pubsub

and install it with pip install ., or create its development environment with uv sync --extra dev (see Contributing).

An XMPP server with PubSub

Your agents need an XMPP server with a PubSub service:

  • The XMPP server of SPADE (PyJabber) has one, at pubsub.<domain> (pubsub.localhost by default). Start it with spade run, or run your program with spade.run(main(), embedded_xmpp_server=True), as the quick start does.
  • Other XMPP servers (Prosody, ejabberd, Openfire...) usually have one too, but they may need some configuration: see XMPP servers and errors.