Metadata-Version: 2.4
Name: news-recap
Version: 1.1.0
Project-URL: Homepage, https://andgineer.github.io/news-recap/
Project-URL: Documentation, https://andgineer.github.io/news-recap/
Author-email: Andrey Sorokin <andrey@sorokin.engineer>
License: Copyright (c) 2024 Andrey Sorokin <andrey@sorokin.engineer>
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of
        this software and associated documentation files (the “Software”), to deal in
        the Software without restriction, including without limitation the rights to use,
        copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
        Software, and to permit persons to whom the Software is furnished to do so,
        subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
        OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
        NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
        HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
        WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
        OTHER DEALINGS IN THE SOFTWARE.
License-File: LICENSE.txt
Keywords: one,two
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.12
Requires-Dist: anthropic>=0.40
Requires-Dist: click>=8.2.0
Requires-Dist: defusedxml>=0.7.1
Requires-Dist: flask>=3.1
Requires-Dist: httpx>=0.28.0
Requires-Dist: langcodes[data]>=3.5.1
Requires-Dist: msgspec>=0.19
Requires-Dist: rich-click>=1.8.8
Requires-Dist: sentence-transformers>=3.0.1
Requires-Dist: trafilatura>=2.0.0
Requires-Dist: youtube-transcript-api>=1.0.0
Provides-Extra: api-litellm
Requires-Dist: litellm>=1.40; extra == 'api-litellm'
Description-Content-Type: text/markdown

[![Build Status](https://github.com/andgineer/news-recap/workflows/CI/badge.svg)](https://github.com/andgineer/news-recap/actions)
[![Coverage](https://raw.githubusercontent.com/andgineer/news-recap/python-coverage-comment-action-data/badge.svg)](https://htmlpreview.github.io/?https://github.com/andgineer/news-recap/blob/python-coverage-comment-action-data/htmlcov/index.html)
# news-recap

`news-recap` is a CLI-first pipeline for collecting, cleaning, deduplicating news
and producing daily recaps with LLM agents.

Instead of throwing raw headlines into one oversized prompt, `news-recap` processes
news through a layered recap workflow that reduces noise, groups related stories,
and produces a cleaner daily digest.

The pipeline drives CLI agents such as Codex, Claude Code, and Gemini CLI, so heavy
daily summarization can run on flat-rate subscriptions instead of per-token APIs.

> Start with the [Quick start](https://andgineer.github.io/news-recap/#quick-start).

## Cost

Each digest pipeline run consumes roughly 3-4% of the weekly CLI agent subscription
quota (~\$0.19 per run, ~\$6/month at daily use).

The dollar figures are approximate. The pipeline runs under flat-rate subscriptions
(Codex, Claude Code, Gemini CLI at ~\$20/month), so the quota would mostly go
unused anyway.

### Docs

- [Manual](https://andgineer.github.io/news-recap/)
- [Pipeline spec](spec/pipeline.md)

# Developers

For development you need [uv](https://github.com/astral-sh/uv) installed.

Bootstrap the environment and install pre-commit hooks:

    source ./activate.sh
    pre-commit install

Run all checks:

    uv run inv pre

## Allure test report

* [Allure report](https://andgineer.github.io/news-recap/builds/tests/)

# Scripts

Install [uv](https://github.com/astral-sh/uv) first. It is used both for package
installation and for development automation.

For a list of available scripts run:

    uv run invoke --list

For more information about a script run:

    uv run invoke <script> --help

## Coverage report

* [Codecov](https://app.codecov.io/gh/andgineer/news-recap/tree/main/src%2Fnews_recap)
* [Coveralls](https://coveralls.io/github/andgineer/news-recap)

> Created with cookiecutter using [template](https://github.com/andgineer/cookiecutter-python-package)
