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
Release files for django-jsonfeed 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-jsonfeed-0.4.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_jsonfeed-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / django-jsonfeed-0.4.0.tar.gz
| Download URL | django-jsonfeed-0.4.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e867b4cee4d26390798f5a0689f9cb9b437887e1180c167ef035ff52def957de
|
|
BLAKE2b-256 checksum How to use checksums |
8abbbfc5274c8e7faf8fd0f2298cb654b132f5d09099e3b7081cc87e7c92c9e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0
|
Release files / django_jsonfeed-0.4.0-py3-none-any.whl
| Download URL | django_jsonfeed-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0297cef0a23192bb135ae7b39bb12ab7233c419f62b39e54cb592baa598b427
|
|
BLAKE2b-256 checksum How to use checksums |
51de449d509fa77c3ea1cbe8486688a32bef78afbb365f3efb24991493c3899d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0
|