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.2.0.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file django-jsonfeed-0.2.0.tar.gz
.
File metadata
- Download URL: django-jsonfeed-0.2.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a01eb25ec982c26d5c31ffcb631ddbc9e735b46053654c2f143fb520d0e1f7f |
|
MD5 | dcf6baf82f6f5dc1b856d77057c0d54c |
|
BLAKE2b-256 | e0de4c24465a96f85c1d695353f272865944396210ee51538ee6343710674d3a |
File details
Details for the file django_jsonfeed-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_jsonfeed-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83932f94d90730a67a8cf6583a0eaa91bdaac10a95ae8c94f3f0d3fa357cc05d |
|
MD5 | a950c38773d244fb6c76bb8ae34a9b83 |
|
BLAKE2b-256 | ce2281be7f787a75f728a0e56712a7f6a99b32312f66120887321a0e2d941880 |