Skip to main content

JSONFeed syndication in Django.

Project description

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

Django JSONFeed

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.

Source Distribution

django-jsonfeed-0.4.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

django_jsonfeed-0.4.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file django-jsonfeed-0.4.0.tar.gz.

File metadata

  • Download URL: django-jsonfeed-0.4.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for django-jsonfeed-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e867b4cee4d26390798f5a0689f9cb9b437887e1180c167ef035ff52def957de
MD5 7d4c5928b40820d417140b8d0d6ab9f0
BLAKE2b-256 8abbbfc5274c8e7faf8fd0f2298cb654b132f5d09099e3b7081cc87e7c92c9e0

See more details on using hashes here.

File details

Details for the file django_jsonfeed-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: django_jsonfeed-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for django_jsonfeed-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0297cef0a23192bb135ae7b39bb12ab7233c419f62b39e54cb592baa598b427
MD5 5462bfb22dcab222c84d8fb21d3294b7
BLAKE2b-256 51de449d509fa77c3ea1cbe8486688a32bef78afbb365f3efb24991493c3899d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page