Skip to main content

JSONFeed syndication in Django.

Project description

CI Status Documentation Status

This library intends to support JSON Feed in Django and feedgenerator.

Usage

If you are using Django:

from django.contrib.syndication.views import Feed
from jsonfeed import JSONFeed

class ExampleFeed(Feed):
    type = JSONFeed

If you are using this library without Django, you will first need to install the feedgenerator Python package:

from jsonfeed import JSONFeed

feed = JSONFeed(
    title='Hello, World!',
    link='https://example.com/',
    language='en'
)

feed.add_item(
    title='One',
    link='https://example.com/1/',
    pubdate=datetime(2018, 2, 28, 15, 16)
)

return feed.writeString()

Installation

$ pip install django-jsonfeed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-jsonfeed, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django_jsonfeed-0.2.0-py2.py3-none-any.whl (4.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-jsonfeed-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page