A little client that parses XMPP Pubsub Nodes and sends them as Atom Syndication Format or OPML over HTTP.
Find a file
Schimon Jehudah, Adv. 53c6c946ca Update instructions;
Improve handling of a single item;
Add references to syndication software.
2024-07-09 15:29:22 +03:00
css Update instructions; 2024-07-09 15:29:22 +03:00
graphic Update instructions; 2024-07-09 15:29:22 +03:00
script Update instructions; 2024-07-09 15:29:22 +03:00
xsl Update instructions; 2024-07-09 15:29:22 +03:00
configuration.toml An initial prototype. 2024-07-09 00:26:18 +03:00
LICENSE Initial commit 2024-07-08 10:57:51 +02:00
pubsub_to_atom.py An initial prototype. 2024-07-09 00:26:18 +03:00
README.md Update instructions; 2024-07-09 15:29:22 +03:00

XMPP PubSub To Atom

A little client that parses XMPP Pubsub Nodes and sends them as Atom Syndication Format or OPML over HTTP.

About

XMPP PubSub To Atom ("XPTA") is a simple Python script that parses XMPP Pubsub Nodes and sends them as Atom Syndication Format or OPML over HTTP.

XPTA generates Atom syndication feeds (RFC 4287) from XMPP PubSub nodes (XEP-0060).

This software was inspired from Tigase and was motivated by Movim.

Requirements

  • Python >= 3.5
  • fastapi
  • feedgenerator
  • lxml
  • slixmpp
  • tomllib

Installation

Download

Extract the source package to a directory that you have permission to run software.

$ git clone https://git.xmpp-it.net/sch/PubSubToAtom
$ cd PubSubToAtom/

Configure

Add account credentials to file configuration.toml.

Start

Execute PubSubToAtom with one of the following commands:

$ python -m uvicorn pubsub_to_atom:app --reload
$ python -m uvicorn pubsub_to_atom:app --reload --host 127.0.0.1 --port 8000
$ uvicorn pubsub_to_atom:app --host 127.0.0.1 --port 8000
$ fastapi dev pubsub_to_atom.py

Usage

It is possible to view a complete node and even a single item, which means, that it is possible to save bandwidth and it further means that a considered and carefully earnest use of this software would saves system overhead, which includes CPU, I/O and RAM usage.

Viewing PubSub

Suppose you have the following nodes and items.

PubSub Node Item
blog.jmp.chat urn:xmpp:microblog:0 launch-2023
news.movim.eu Phoronix
pubsub.movim.eu berlin-xmpp-meetup let-s-talk-about-the-xsf-and-possibly-other-things-6A8eV4

To view node items

To view a node item

Author

Schimon Jehudah Zackary

License

CSS and XSLT stylesheets are licensed under the license MIT.

JS scripts are licensed under the license MIT.

Python code is licensed under the license AGPL-3.0 only.

Acknowledgement

Special thanks to "d3x" and "cchianel" from IRC channel #python on irc.libera.chat

Similar Projects

  • AtomEntry and PubSubPublishViewImpl- Convert XMPP Pubsub Nodes to Atom Syndication Format and convey them over HTTP.

  • AtomToPubsub - A little client that parses Atom + RSS feeds and send them on XMPP Pubsub Nodes.