Skip to main content

SPADE Plugin for PubSub support.

Project description

SPADE PubSub

https://img.shields.io/pypi/v/spade_pubsub.svg Python Versions Languages Code Size MIT License Downloads Continuous Integration Status Code Coverage Status Documentation Status https://img.shields.io/pypi/format/spade.svg

SPADE Plugin for PubSub support. SPADE PubSub is a plugin that extends the SPADE (Smart Python Agent Development Environment) framework with publish-subscribe communication capabilities. It enables SPADE agents to leverage the XMPP PubSub extension for efficient, decoupled communication patterns in multi-agent systems.

Purpose and Scope

This plugin provides a clean, agent-oriented interface to the XMPP Publish-Subscribe Extension (XEP-0060), allowing SPADE agents to:

  • Create and manage PubSub nodes

  • Subscribe to nodes of interest

  • Publish content to nodes

  • Receive notifications when content is published

  • Manage subscriptions and published items

SPADE PubSub serves as a bridging layer between SPADE’s agent-oriented architecture and the underlying XMPP Pu

Features

  • Node Creation and Management: Agents can create, delete, and purge nodes on a PubSub server, allowing flexible management of communication channels.

  • Subscription to Nodes: Agents have the capability to subscribe and unsubscribe from specific nodes, facilitating the reception of relevant updates.

  • Item Publication: Agents can publish items to subscribed nodes, efficiently distributing information to all subscribers.

  • Item Management: It’s possible to retrieve all items published on a node and retract specific items when necessary.

  • Notifications Without Items: Agents can send notifications to all subscribers of a node without the need to publish an item, useful for alerts or signals.

  • Custom Callbacks: Functions can be registered to handle events such as item publication or retraction, allowing personalized responses to these events.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.3.0 (2025-07-16)

  • Add support for slixmpp

0.2.1 (2025-05-19)

  • Refactor code to imitate the response format of aioxmpp

  • Improve documentation

0.2.0 (2024-12-17)

  • Migration to the Slixmpp library for PubSub operations

  • Refactor and fix of the previous tests

0.1.3 (2021-06-29)

  • Minor bug fixed.

0.1.2 (2021-06-25)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spade_pubsub-0.3.0.tar.gz (308.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spade_pubsub-0.3.0-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file spade_pubsub-0.3.0.tar.gz.

File metadata

  • Download URL: spade_pubsub-0.3.0.tar.gz
  • Upload date:
  • Size: 308.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for spade_pubsub-0.3.0.tar.gz
Algorithm Hash digest
SHA256 aa78b6dc3fa5df2bd42e1042ea956bda7790b183e9383a5fa7ed68193d987ec2
MD5 b00f1f214968cbc4d5669198ec9ada3d
BLAKE2b-256 aa13e3971115ef64d6f8878b8f8e26c324ec41e41b4a675b0e2a9585216ce1d0

See more details on using hashes here.

File details

Details for the file spade_pubsub-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: spade_pubsub-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for spade_pubsub-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 efc775a61b871050f00e363be5a18f8219a3c668d20efb0f349d271950f54096
MD5 36c87c7d71f9cbf56106624062e00d1d
BLAKE2b-256 b1fc63802a5c5c781ffa1e37284c90eef76ad61de68161e582cc4e90b6124c1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page