Skip to main content

JSONFeed syndication in Django.

Project description

https://travis-ci.org/myles/django-jsonfeed.svg?branch=master

Adding a JSON Feed type to Django Syndication Feed Framework or any standard Python project.

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

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

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.1.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

django_jsonfeed-0.1.3-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-jsonfeed-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d9e4e7f4ed415498c1e70638af8ac409f9b04ddcafade31abd03b26b64775104
MD5 376b0e9335e7f2d21b920d86b8c78cb1
BLAKE2b-256 5f003abc6e77d35286179392ff7531c91bfd10bf350d9b63d31b47ef94d64fb0

See more details on using hashes here.

File details

Details for the file django_jsonfeed-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_jsonfeed-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2901268e5bf14ed35f39f1b75f6f0b95e3838daebe164017e4989a3a8b1b4980
MD5 cdd575dbae2511dadb44fac05346f907
BLAKE2b-256 fe4c85cc2910fc38524f48bd90d780b1706bdfc0119abf3de2fe07952da31585

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