Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Python library for generating Atom 1.0 feeds.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .hgtags
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 __init__.py
Octocat-spinner-32 pyatom.py
Octocat-spinner-32 setup.cfg
Octocat-spinner-32 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--

Something went wrong with that request. Please try again.