Skip to main content

Rewind.Learn

Transform session artifacts into structured knowledge.

PyPI version Python 3.10+ License

Installation

pip install rewindlearn

Quick Start

# Set your API key
export ANTHROPIC_API_KEY="your-key"

# Process a session
rewindlearn process run \
    --template online-course \
    --transcript lecture.vtt \
    --chat chat.txt \
    --course "AI Engineering" \
    --session 5 \
    --output study-guides/

Python API

import asyncio
from rewindlearn import process_session

async def main():
    results = await process_session(
        template="online-course",
        transcript_path="lecture.vtt",
        chat_path="chat.txt",
        course_name="AI Engineering",
        session_number=5
    )
    print(results["session_summary"])

asyncio.run(main())

Features

  • Session Summary: Comprehensive overview of the session content
  • Concept Timeline: Chronological breakdown of concepts with timestamps
  • Friction Analysis: Identifies potential confusion points and questions
  • Coverage Gaps: Topics that could use more coverage
  • Learning Resources: Curated resources for each topic
  • Action Items: Prioritized tasks for students
  • Concept Chunks: CSV with video clip markers for splitting

CLI Commands

# Show help
rewindlearn --help

# Show version
rewindlearn --version

# Process a session
rewindlearn process run --template online-course --transcript lecture.vtt --output ./output

# List available templates
rewindlearn template list

# Show template details
rewindlearn template show online-course

# Validate a template
rewindlearn template validate custom-template.yaml

# Show current configuration
rewindlearn config show

# Check configuration validity
rewindlearn config check

Configuration

Create a .env file or set environment variables:

# Required: At least one LLM API key
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...

# Optional: LangSmith for observability
LANGSMITH_API_KEY=lsv2_...
LANGSMITH_TRACING=true

# Optional: Override defaults
REWINDLEARN_DEFAULT_PROVIDER=anthropic
REWINDLEARN_DEFAULT_MODEL=claude-sonnet-4-20250514
REWINDLEARN_TEMPLATES_DIR=./templates
REWINDLEARN_OUTPUT_DIR=./output

Development

# Clone the repository
git clone https://github.com/knightsri/rewind.learn.git
cd rewind.learn

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest -v

# Type checking
mypy src/

# Linting
ruff check src/

License

Apache 2.0

Metadata

Release files for rewindlearn 0.1.1

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

Source distribution (sdist)

Source distribution for rewindlearn 0.1.1
File Size Uploaded
rewindlearn-0.1.1.tar.gz 24.2 kB Details

Built distribution (wheel)

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

Total release size: 57.5 kB

Release files / rewindlearn-0.1.1.tar.gz

Download URL rewindlearn-0.1.1.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c6689dc2d1be2a0dd46020105fd3580db2e1591639c7da9efec97288034dca4f
BLAKE2b-256 checksum
How to use checksums
ab26b569a23f7efde2066ac6f46ef7fcf73058e0fc2daf15f29808afbe2c43af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / rewindlearn-0.1.1-py3-none-any.whl

Download URL rewindlearn-0.1.1-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cab603fcdd0e189b7bd856cdf21c1b2f442e2ca333edff989da72db3293ea9d
BLAKE2b-256 checksum
How to use checksums
22eb4276983c7083a330c18a9cdab013a2a71d4a5e54455f39d85b79830a011d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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