6

Which Python library is commonly used today to generate Atom feeds?

Note, there exists a very similar question from 2008, but its answers are mostly obsolete. The library atomxlib was recommended, but it apparently is obsolete (also the website does not exist anymore).

Community
  • 1
  • 1
alienhard
  • 14,376
  • 9
  • 37
  • 28

6 Answers6

5

For future Googlers, the recommended library (WebHelpers) doesn't support Python 3, and it appears to be abandoned. There was a rewrite, WebHelpers2, but it doesn't include the feed generator, and it seems to be end-of-lifed. "Version 2.0 is the final release."

feedgen looks more up to date, it can generate both Atom and RSS feeds, and it supports Python 3 (as well as Python 2).

Telemachus
  • 19,459
  • 7
  • 57
  • 79
5

It's a surprisingly non trivial question.

Looking into what known projects are using, that generates rss, my two main options are:

qraqen
  • 51
  • 1
  • 1
2

I use webhelpers.feedgenerator. It supports Atom1 feeds.

amol
  • 1,771
  • 1
  • 11
  • 15
Jochen Ritzel
  • 104,512
  • 31
  • 200
  • 194
0

How about rfeed?

Another one I found is the AtomFeed from Werkzeug (Atom Syndication), but the functionality is removed since the version 1.0. So I found a fork at feedwerk.

raphiel
  • 711
  • 2
  • 9
  • 24
wHisKy
  • 1
  • 3
-1

I would use one of the many templating systems out there (like Jinja2, Mako, ...)

Miki Tebeka
  • 13,428
  • 4
  • 37
  • 49
-2

Maybe you could reuse Django's syndication feed framework. Altough you should notice that it's usually best practice to write it by yourself because generating XML is rather simple and there's few value in using a generator as is, as mentioned by lazy1.

charlax
  • 25,125
  • 19
  • 60
  • 71