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 git+https://github.com/sesh/feeder.git
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.
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.0.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for json_feeder-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd16e2220e1098e50cd5fd6f4ab5d8ffbeac1bf2018962d9101deb3d2353d5b |
|
MD5 | 299fca5d7ebb8f064278633ed68708c6 |
|
BLAKE2b-256 | 5a1ea9ccd3b2a53656021c071849f816cd97b22cd6f8189707c611043255ef39 |