A Python library for generating Atom 1.0 feeds.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.hgtags Added tag 1.2 for changeset 30702d244226 Apr 16, 2011
LICENSE.txt
MANIFEST.in
README.rst
__init__.py
pyatom.py
setup.cfg
setup.py

README.rst

PyAtom

A Python library for generating Atom 1.0 feeds.

Extracted from werkzeug.contrib.atom and created as a standalone package.

Latest Version

The latest version of this project can be found at : http://github.com/sramana/pyatom.

Installation

  • Option 1 : Install via pip

    pip install pyatom
    
  • Option 2 : If you have downloaded the source

    python setup.py install
    

Documentation

How to use?

from pyatom import AtomFeed
import datetime

feed = AtomFeed(title="My Blog",
                subtitle="My example blog for a feed test.",
                feed_url="http://example.org/feed",
                url="http://example.org",
                author="Me")

# Do this for each feed entry
feed.add(title="My Post",
         content="Body of my post",
         content_type="html",
         author="Me",
         url="http://example.org/entry1",
         updated=datetime.datetime.utcnow())

print feed.to_string()

License

This project is released under BSD license (http://creativecommons.org/licenses/BSD).

Credits

The code is copy-pasted from werkzeug library. Thanks to them.

Contribution

Contributions are most welcome. Please submit a patch on bitbucket or github.

Reporting Bugs

Please report the bugs at bitbucket or github issue tracker.

Feedback

I love to hear what you think about this project. Please drop me a line.

Author

Ramana <sramana9@gmail.com> Praveen Gollakota

--END--