Metadata-Version: 2.4
Name: martino-summarize
Version: 0.5.0
Summary: Local-first multi-source video summarization with any OpenAI-compatible LLM
Author: Martino Piaggi
License: MIT
Project-URL: Homepage, https://github.com/martinopiaggi/summarize
Project-URL: Documentation, https://summarize.martino.im
Project-URL: Repository, https://github.com/martinopiaggi/summarize
Project-URL: Issues, https://github.com/martinopiaggi/summarize/issues
Project-URL: Changelog, https://github.com/martinopiaggi/summarize/blob/main/CHANGELOG.md
Keywords: video,summarization,youtube,transcription,llm,notebooklm
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: youtube-transcript-api>=1.2.3
Requires-Dist: pytubefix>=1.6.3
Requires-Dist: groq>=0.4.2
Requires-Dist: openai>=1.3.7
Requires-Dist: yt-dlp>=2026.8.19
Requires-Dist: aiohttp>=3.9.0
Requires-Dist: requests>=2.31.0
Requires-Dist: wget>=3.2
Requires-Dist: google-api-python-client>=2.0.0
Requires-Dist: google-auth-httplib2>=0.1.0
Requires-Dist: google-auth-oauthlib>=0.4.1
Requires-Dist: dropbox>=11.36.2
Requires-Dist: ffmpeg-python>=0.2.0
Requires-Dist: pyyaml>=6.0
Provides-Extra: whisper
Requires-Dist: openai-whisper; extra == "whisper"
Provides-Extra: litellm
Requires-Dist: litellm<1.87,>=1.80.0; extra == "litellm"
Provides-Extra: server
Requires-Dist: fastapi>=0.100.0; extra == "server"
Requires-Dist: uvicorn[standard]>=0.23.0; extra == "server"
Requires-Dist: python-multipart>=0.0.6; extra == "server"
Provides-Extra: all
Requires-Dist: openai-whisper; extra == "all"
Requires-Dist: litellm<1.87,>=1.80.0; extra == "all"
Requires-Dist: fastapi>=0.100.0; extra == "all"
Requires-Dist: uvicorn[standard]>=0.23.0; extra == "all"
Requires-Dist: python-multipart>=0.0.6; extra == "all"
Dynamic: license-file

# Video Summarizer

<p align="center">
    <img alt="Video summarizer demo" src="./summarize_sample.gif">
</p>

https://github.com/user-attachments/assets/d59e4879-f527-47c0-bdcc-bc512a87ce94

> Turn any video — a lecture, TikTok, or Drive recording — into distilled markdown: Q&A, fact-checks, tutorials, Mermaid diagrams, essays, and more. 

- **11+ sources**: Local-first summarization for YouTube, Instagram, TikTok, X, Reddit, Facebook, Drive, Dropbox, local files
- **Bring your own API keys**: Works with any OpenAI-compatible LLM, Perplexity models, LiteLLM
- **CLI · Streamlit · HTTP API · Docker · Raycast · Agent skill**
- **Transcript cache** + optional JEV prefiltering + optional Cobalt sidecar for yt-dlp fallbacks + optional vision mode
- **Optional transcript sidecar**: [TranscriptFetch](https://transcriptfetch.com) fetches YouTube, TikTok, and Instagram transcripts from servers where YouTube blocks downloads

## Documentation
 
https://summarize.martino.im

## Background

[more on this project](https://martino.im/Summarize.html)

## Quick Start

Requires Python 3.10+, **ffmpeg** on `PATH`, and an OpenAI-compatible API key in `.env`. 
Recommended: install with `pipx` for an isolated environment.

[Groq](https://groq.com/) (`GROQ_API_KEY`) offers a free tier; `OPENAI_API_KEY` works with `--provider openai`.

```bash
pipx install martino-summarize
summarizer --init-config
echo "GROQ_API_KEY=your_key_here" > .env
summarizer --source "https://www.youtube.com/watch?v=arj7oStGLkU"
```

Output: `summaries/watch_YYYYMMDD_HHMMSS.md`. 

Configuration lives in `summarizer.yaml` and `.env`. 

To use the TranscriptFetch sidecar, add `TRANSCRIPTFETCH_API_KEY` to `.env` and run with `--sidecar transcriptfetch` (or set `sidecar: transcriptfetch` in `summarizer.yaml`). See [Transcript sidecar](https://summarize.martino.im/integrations/transcript-sidecar).

Prefer Docker? 

```bash
git clone https://github.com/martinopiaggi/summarize.git && cd summarize
cp summarizer.docker.yaml summarizer.yaml
echo "GROQ_API_KEY=your_key_here" > .env
docker compose up -d    # → http://localhost:8501
```

Or pull the pre-built image: `docker pull ghcr.io/martinopiaggi/summarize:latest`. 




## Contributing

```bash
git clone https://github.com/martinopiaggi/summarize.git && cd summarize
pip install -e ".[all]" pytest && pytest tests/
```

See [CONTRIBUTING.md](CONTRIBUTING.md). License: [MIT](LICENSE).
