JSONFeed syndication in Django.
Project description
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.
Source Distribution
django-jsonfeed-0.1.4.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-jsonfeed-0.1.4.tar.gz.
File metadata
- Download URL: django-jsonfeed-0.1.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2af5e6b08c3059372c6e15bc8c2a2c55bfd2f82288122ccfcfb3d317e69373cf
|
|
| MD5 |
05f239fdf6bf3d6dad2b9159571bafee
|
|
| BLAKE2b-256 |
ee04429dc63d9578a8e462db42797cc07f235dfac157adc89b06e07d0c909ac3
|
File details
Details for the file django_jsonfeed-0.1.4-py2.py3-none-any.whl.
File metadata
- Download URL: django_jsonfeed-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
891ed956b16c404e01facacf67f7d65610a8b31a2c6e4b5c70e0d22b63b64099
|
|
| MD5 |
9aa311ee0dfde66d55e0f13694c5f631
|
|
| BLAKE2b-256 |
3c84e3f39734e8743d07b67fa61b2b1143ec11dc83b7a3e0d1c572831b72b1ee
|