How to install pyatom
- Download and install ActivePython
- Open Command Prompt
pypm install pyatom
A Python library for generating Atom 1.0 feeds.
Extracted from werkzeug.contrib.atom and created as a standalone package.
The latest version of this project can be found at : http://github.com/sramana/pyatom.
Option 1 : Install via pip
pip install pyatom
Option 2 : If you have downloaded the source
python setup.py install
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()
This project is released under BSD license (http://creativecommons.org/licenses/BSD).
The code is copy-pasted from werkzeug library. Thanks to them.
Contributions are most welcome. Please submit a patch on bitbucket or github.
Please report the bugs at bitbucket or github issue tracker.
I love to hear what you think about this project. Please drop me a line.