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.3.0.tar.gz
(4.7 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.3.0.tar.gz.
File metadata
- Download URL: django-jsonfeed-0.3.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
178783a86edf6f4dfd63d2ba391172168bc0e41b301ab7dc15fc83d226ba13e9
|
|
| MD5 |
03979b06e3338b5c6ae2b77b7feceefc
|
|
| BLAKE2b-256 |
71f4f089d298205f13b73288629026907291c02a53720052365f3949a9fc5f73
|
File details
Details for the file django_jsonfeed-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: django_jsonfeed-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01189428d971cfb774e357de9634f3283e03d66928bfc6f144a0b33f9b7b21b7
|
|
| MD5 |
b5651ffc83403364e85e06d62b556907
|
|
| BLAKE2b-256 |
f708d87f167f0da6f5499c8e814f1ec0bf36d44570bcfdbc820aea35569a150f
|