Skip to main content

annextube

YouTube archive system using git-annex for efficient storage and incremental updates.

Live Demo - Try the web interface with sample videos from the @AnnexTubeTesting channel (auto-generated by GitHub Actions)

Features

  • Complete channel archival: Videos, metadata, comments, and captions
  • Incremental updates: Efficient detection of new content
  • Offline browsing: Client-side web interface (no server required)
  • Flexible filtering: By date, license, playlist, metadata attributes
  • CI/CD automation: GitHub Actions and Codeberg Actions support
  • Git-annex integration: Efficient storage with special remotes (S3, WebDAV, etc.)

Quick Start

# Install (core)
pip install annextube

# Or install with all optional features (DataLad, search index, audio alignment)
pip install 'annextube[full]'

# Create archive
mkdir my-archive && cd my-archive
annextube init

# Configure (edit .annextube/config.toml)
# Add YouTube Data API key and channel URLs

# Backup
annextube backup

# Browse offline
annextube generate-web
open web/index.html

Container Deployment

Pre-built container with all dependencies (git-annex, yt-dlp, ffmpeg, deno):

# Build container
podman build -t annextube:latest -f Containerfile .

# Run
podman run -it --rm -v $PWD:/archive -e YOUTUBE_API_KEY="key" annextube:latest backup

# For Singularity/Apptainer (HPC clusters)
apptainer build annextube.sif Containerfile
apptainer run --bind $PWD:/archive annextube.sif backup

See docs/how-to/container-deployment.md for full guide.

Documentation

System Requirements

Required

  • Python 3.10+: Runtime for annextube
  • git: Version control
  • git-annex 8.0+: Large file management
  • yt-dlp (command-line): MUST be in PATH for git-annex --no-raw
    sudo pip install yt-dlp
    # Or download binary to /usr/local/bin
    

Strongly Recommended

  • ffmpeg: Video processing and best quality downloads
    sudo apt-get install ffmpeg  # Debian/Ubuntu
    brew install ffmpeg          # macOS
    

Optional

  • YouTube Data API v3 key: For API-based metadata (free from Google Cloud Console)

  • deno or node: JavaScript runtime for modern YouTube features

  • Optional extras (install individually or all at once with pip install 'annextube[full]'):

    Extra Install Description
    datalad pip install 'annextube[datalad]' DataLad dataset management
    search pip install 'annextube[search]' Full-text caption search index (pagefind)
    audio-align pip install 'annextube[audio-align]' Audio-based caption alignment (Whisper)
    full pip install 'annextube[full]' All of the above

Development

# Clone repository
git clone https://github.com/con/annextube.git
cd annextube

# Install with development dependencies
uv pip install -e ".[devel]"

# Run tests
pytest

# Run linter
ruff check annextube/ tests/

# Run type checker
mypy annextube/

License

MIT License - see LICENSE file

Contributing

See CONTRIBUTING.md (TBD)

Project Status

🚧 Early Development - This project is under active development. API may change.

Current phase: Implementing MVP (User Story 1 + 2)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

annextube-0.14.0.tar.gz (318.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

annextube-0.14.0-py3-none-any.whl (229.5 kB view details)

Uploaded Python 3

File details

Details for the file annextube-0.14.0.tar.gz.

File metadata

  • Download URL: annextube-0.14.0.tar.gz
  • Upload date:
  • Size: 318.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for annextube-0.14.0.tar.gz
Algorithm Hash digest
SHA256 f9d1bf1c48ff933a8a21b2a6e2a141d5844f3f59fb10c265fa514b3fe09dcac1
MD5 02bd33daf9a39b1586835a8679f54183
BLAKE2b-256 c195252fe86a9c0f0a37591187fa9fe8f428bbca8d8fc627d228a23b34c0a719

See more details on using hashes here.

File details

Details for the file annextube-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: annextube-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 229.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.14

File hashes

Hashes for annextube-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 036412c5a309877a55f0cc1284a78db8ce4aa3dc989dc143ffbc8c28802369d4
MD5 0ed1bfdeba34b9cc6914870522a8a124
BLAKE2b-256 8cf23322033ba00b9a827bd3a71f9173602c10dfc9f99b0ba5851273dc1d28cf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.14.0 This release

2 files

0.13.0

2 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