Skip to content
This repository has been archived by the owner on May 21, 2020. It is now read-only.
/ pyatom Public archive

A Python library for generating Atom 1.0 feeds.

License

Notifications You must be signed in to change notification settings

nephics/pyatom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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--

About

A Python library for generating Atom 1.0 feeds.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages