Skip to main content

rssrender

Render RSS feeds for terminal display with customizable Jinja2 templates.

Features

  • Parse RSS feeds and render them for terminal output
  • Filter entries by age (only show recent entries)
  • Customizable output using Jinja2 templates
  • HTML to plain text conversion with formatting preservation
  • Content length limiting
  • Optional link hiding

Installation

pip install rssrender

Or install from source:

git clone git@github.com:berkeley-stat/rssrender.git
cd rssrender
pip install -e .

Usage

rssrender --feed-url <RSS_FEED_URL> [--template <TEMPLATE_PATH>]

Options

  • --feed-url (required): RSS feed URL
  • --template: Path to Jinja2 template file (default: included example template)
  • --day-threshold: Number of days to consider an entry as recent (default: 30)
  • --max-body-length: Maximum length of the body content (default: 400)
  • --hide-http-link: If set, the HTTP link will not be displayed in the output

Example

# Use the default template
rssrender --feed-url https://example.com/feed.xml

# Use a custom template and filter by last 7 days
rssrender --feed-url https://example.com/feed.xml --template ./my-template.j2 --day-threshold 7

Template Format

Templates use Jinja2 syntax and have access to:

  • description: Feed description (if available)
  • entries: List of entries with the following fields:
    • date: Publication date (YYYY-MM-DD format)
    • title: Entry title
    • link: Entry URL (if not hidden)
    • content: Entry content (HTML converted to plain text)

Custom Filters

Two custom filters are available in templates:

  • wrap(width, subsequent_indent, indent_all): Wrap text to specified width
  • indent(width, first): Indent lines by specified number of spaces

See the included example template for reference.

Use Cases

  • Generate MOTD (Message of the Day) from RSS feeds
  • Display news feeds in terminal dashboards
  • Create plain text digests from blogs
  • Any terminal-based RSS feed display

License

BSD 3-Clause License - See LICENSE file for details.

Metadata

Release files for rssrender 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rssrender 0.1.0
File Size Uploaded
rssrender-0.1.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rssrender 0.1.0
File Interpreter ABI Platform
rssrender-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.8 kB

Release files / rssrender-0.1.0.tar.gz

Download URL rssrender-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
190d66ca136d92c9595c64696d08717fb75179e607922ece3fa3f87d638d4603
BLAKE2b-256 checksum
How to use checksums
89b206ad500d871f3f9b222642ca60313ff05d94dfd35828d6fd1624614325a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 9, 2025.

Transparency log

Release files / rssrender-0.1.0-py3-none-any.whl

Download URL rssrender-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daaebad824e93705467e7948e701736589514dff240ba4f4def5d8caa6eb776f
BLAKE2b-256 checksum
How to use checksums
a53ee93789bf14fa6b01441e910ce3f6ae5750e91bb58af08ccec8739cf8ee0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 9, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page