Digest Generator
Digest Generator is a Python pipeline that aggregates articles from RSS feeds you define, generates fact-dense per-article summaries via an LLM, classifies them with zero-shot NLI, and produces a Markdown digest via Ollama. Feeds, sections, and prompts are all user-supplied; the tool ships generic baselines so it runs on any topic out of the box.
How It Works
A run has two halves that share one run directory:
- Corpus. Fetch every feed, then summarize each article with an LLM and classify its topics with BART-MNLI, in parallel.
- Digest. Cluster articles into stories, draft each section, edit it, write the title and intro, pick what to watch, and compose
<date>.md.
digest-generator run does both. run --no-digest stops after the corpus, and digest <run_dir> turns an existing corpus into a digest. Each stage caches its output, so re-running against the same directory skips finished work. The stage-by-stage view is in docs/usage.md.
Requirements
- Python. Version 3.13 or later.
- Ollama. The summarizer and every digest stage call Ollama. The default models (
gemma4:31b-cloud,gpt-oss:120b-cloud) are Ollama cloud models: setOLLAMA_API_KEYto call ollama.com directly, or use a local Ollama signed in to an Ollama account. To stay fully local, pull local models and set the six*_MODELvariables listed in.env.example. - HuggingFace token.
runandlabellog in to the HuggingFace Hub before the topic classifier loads, so they fail withoutHF_TOKEN(create a token). The classifier model (BART-MNLI, about 1.6 GB) downloads on first use. - Optional extras. Piper and ffmpeg for audio rendering, and an NVIDIA or Apple Silicon GPU for the classifier. Both are covered in
docs/setup.md.
Installation
uv tool install digest-generator # or: pipx install digest-generator
digest-generator init # write a starter feeds.yaml
Inside an activated virtual environment, pip install digest-generator works too. init creates ~/.config/digest-generator/feeds.yaml from a starter template. Edit it to define your own sections (categories:) and the feeds in each, then run digest-generator feeds to check it. Put HF_TOKEN (and OLLAMA_API_KEY for cloud Ollama) in a .env file in the directory you run from, or export them in your shell. .env.example lists every other setting with its default.
A small first run keeps the LLM cost low:
digest-generator run -d 1 --limit 3 # 1 day back, at most 3 articles per feed
The digest lands at output/<run_id>/<date>.md. To work from a clone instead, follow docs/setup.md, which also covers audio, GPU, and troubleshooting.
Usage
digest-generator run # full pipeline (fetch + summarize + classify + digest)
digest-generator run --no-digest # corpus build only (skip digest generation)
digest-generator run --audio # full pipeline + Piper TTS rendition
digest-generator digest <run_dir> # regenerate the digest from an existing run directory
digest-generator audio <run_dir> # render audio for an existing digest (no LLM cost)
digest-generator lint <digest.md> # check a digest before publishing (exits 1 on errors)
digest-generator feeds # list available feeds
See docs/usage.md for the full CLI reference, caching, the programmatic API, and the output layout.
Contributing
Bug reports, feature requests, and pull requests are welcome; CONTRIBUTING.md covers development setup and the workflow, and participation follows the Code of Conduct.
License
This project is licensed under the Apache License 2.0. You are free to use, modify, and distribute this project, provided you keep the license and the NOTICE file with any redistribution.
Metadata
Release files for digest-generator 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| digest_generator-0.3.0.tar.gz | 323.4 kB | With provenance | Details for digest_generator-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| digest_generator-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for digest_generator-0.3.0-py3-none-any.whl |
Total release size: 499.0 kB
Release files / digest_generator-0.3.0.tar.gz
| Download URL | digest_generator-0.3.0.tar.gz |
|---|---|
| Size | 323.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e787cecc8ddd7222624c21ed12f0d52b4666badf331a141fbd5de4951d54b090
|
|
BLAKE2b-256 checksum How to use checksums |
2470275f915bbc6ebb1f45b815437134ceb8edc8f2e3a4ee0d4762835cf2ee22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 19, 2026.
Transparency logRelease files / digest_generator-0.3.0-py3-none-any.whl
| Download URL | digest_generator-0.3.0-py3-none-any.whl |
|---|---|
| Size | 175.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5396309945579bc0efb632a3b6ce35a7faf15afc5c1382a15fce24926d66de48
|
|
BLAKE2b-256 checksum How to use checksums |
8a9f755d5cf9afba161d569b9f809fed5854acdddfb681ecfd9eea5c44ee44f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 19, 2026.
Transparency logSecurity for digest-generator 0.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for digest_generator-0.3.0.tar.gz
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 Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.