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
- Installation: See docs/tutorial/01-installation.md
- Container Deployment: See docs/how-to/container-deployment.md
- Quick Start: See specs/001-youtube-backup/quickstart.md
- Troubleshooting: See docs/how-to/troubleshooting.md (challenge solver errors, quota, interrupted backups)
- API Reference: See docs/reference/
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 dataladpip install 'annextube[datalad]'DataLad dataset management searchpip install 'annextube[search]'Full-text caption search index (pagefind) audio-alignpip install 'annextube[audio-align]'Audio-based caption alignment (Whisper) fullpip 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file annextube-0.13.0.tar.gz.
File metadata
- Download URL: annextube-0.13.0.tar.gz
- Upload date:
- Size: 306.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c182dfcff6de70984613370a07b70b48655d3216775e5c062c868d13135fee
|
|
| MD5 |
46421a00c305952bdca257756b1eeda9
|
|
| BLAKE2b-256 |
c8a66f089c822d8c791393bae3cf79c7a9cd97d9173ff41806b5d709b18d1a01
|
File details
Details for the file annextube-0.13.0-py3-none-any.whl.
File metadata
- Download URL: annextube-0.13.0-py3-none-any.whl
- Upload date:
- Size: 225.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adf7b861efad5cbc4be472af23c5c9aadaec0b25a28a77806f45b1631687dac7
|
|
| MD5 |
1f04c0468cb710bfef4f399dc75a6158
|
|
| BLAKE2b-256 |
7c2ffbcc7a61c802c0e991d090d43f8cb44d3f35012e2aad3b548b64dcfd225c
|