A framework for generate JSON feeds
Project description
This framework is highly experimental and very likely to change significantly
feeder
feeder
is a small Python framework that helps you generate JSON Feeds.
Usage
For now, install from Github with:
python3 -m pip install json-feeder
Create a directory for your new feed, the start the new feed with:
feeder startfeed
settings.py
, feed.py
and generate.py
files will be created for you.
The following settings can be configured:
FEED_FUNCTION
the path to a Python function that will return a list ofFeedItem
objects.FEED_FILENAME
the filename on disk for the feed. If you are using Github Pages then this should be set toout/feed.json
or similar.FEED_URL
the remote url of the feed. This is used to ensure that duplicates are not added to the file.FEED_TITLE
is the title of your feed.FEED_HOMEPAGE_URL
is the homepage of your feed, this is optional.FEED_ICON
is a url to an icon that feed readers might use for your feed. Very optional.FEED_VERSION
defaults to "1.1" and represents the JSON Feed version.FEED_MAX_ITEMS
limits the number of items to output in the feed. Default is 100.
Once you've updated your settings.py
and created your FEED_FUNCTION
you can generate your feed by running:
python3 generate.py
Runnings Tests
python3 -m unittest discover
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json-feeder-0.1.1.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file json-feeder-0.1.1.tar.gz
.
File metadata
- Download URL: json-feeder-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868521afa3d5421ad3c793da99b64998efb656355d5a715a403d860c2d9873dd |
|
MD5 | da38a9af1ec63f2191cab8cad88a0cc2 |
|
BLAKE2b-256 | 6abe1a837f7c65823d265159fedba9c02d8b57ed1aae62899c23ce63220dab03 |
File details
Details for the file json_feeder-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: json_feeder-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147a89d14e0ce0568d65e164dac5e8c504a3fbe1032d1f272fc27bf88994a697 |
|
MD5 | 7602a14c7ffba0f36a70f1f6c7233f74 |
|
BLAKE2b-256 | e75811931f8707bf6f2d0a3a0f056becb54cc76287ed12f763da425269594572 |