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)
Metadata
Release files for annextube 0.15.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| annextube-0.15.2.tar.gz | 340.4 kB | Without provenance | Details for annextube-0.15.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| annextube-0.15.2-py3-none-any.whl | Python 3 | none | any | Details for annextube-0.15.2-py3-none-any.whl |
Total release size: 579.1 kB
Release files / annextube-0.15.2.tar.gz
| Download URL | annextube-0.15.2.tar.gz |
|---|---|
| Size | 340.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccfec067f03fbcd93e649673083d0774c9268b7b20d5f6b82f659191084a5dcf
|
|
BLAKE2b-256 checksum How to use checksums |
4a18dd8f765a39565171ce067723d78c28469a184c69c86cf353fcf183aa7357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / annextube-0.15.2-py3-none-any.whl
| Download URL | annextube-0.15.2-py3-none-any.whl |
|---|---|
| Size | 238.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17297013bd23ccab659905021135216100ac51d8bd8b193c2fe38fdea898c70c
|
|
BLAKE2b-256 checksum How to use checksums |
c6c44d5bcecf0e164562b7d3b52b6d138e297f5a31db4f7a6cc4e34a8d2820b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for annextube 0.15.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.