paper_firehose.processors.emailer¶
Email rendering and sending utilities for Paper Firehose.
Generates a simple, email-friendly HTML digest from papers.db and sends it via SMTP (SSL) based on configuration stored in the runtime data directory (config/config.yaml under the path resolved by PAPER_FIREHOSE_DATA_DIR).
Uses only the Python standard library.
Classes
Create compact HTML suitable for email clients (no external JS/CSS). |
|
|
Send emails via SMTP (SSL) using settings under config['email']['smtp']. |
- class paper_firehose.processors.emailer.EmailRenderer[source]¶
Bases:
objectCreate compact HTML suitable for email clients (no external JS/CSS).
- render_full_email(title, sections)[source]¶
Return a complete HTML email with a title and named sections.
sections: list of (section_title, section_html)
- render_ranked_entries(topic_display_name, entries, *, max_items=None)[source]¶
Render a ranked-style section for email with minimal, inline CSS.
Entry layout: - Title (link) with Score badge - Authors - Feed name - Abstract if present; otherwise summary if available