How lewangdev/youtube-drive works
youtube-drive is a command-line tool and Python library for converting files to RGB video and optionally storing that video on YouTube. The main workflow encodes a file before upload, or downloads a selected YouTube video before decoding it back to a file. Local encode/decode commands also support optional AES encryption. The graph follows the documented capabilities; source excerpts show the CLI orchestration and codec implementation, but not the internals of the YouTube client libraries.
Main entry points: main.py CLI orchestration · youtube_codec.py RGB video codec · config.py Encryption defaults
Components 11
CLI workflows
- CLI orchestration
youtube_drive/main.py
File video codec
- RGB video codec
youtube_drive/youtube_codec.py - Encryption defaults
youtube_drive/config.py
YouTube integrations
- YouTube authentication
- YouTube uploader
- YouTube downloader
Other components
- User
- Input file
- Local video
- Decoded file
- YouTube
Connections 12
- User → CLI orchestration: runs command
- CLI orchestration → RGB video codec: encodes or decodes
- RGB video codec → Encryption defaults: reads defaults
- RGB video codec → Input file: reads bytes
- RGB video codec → Local video: writes or reads
- RGB video codec → Decoded file: writes bytes
- CLI orchestration → YouTube authentication: gets credentials
- YouTube authentication → YouTube: authorizes
- CLI orchestration → YouTube uploader: uploads video
- YouTube uploader → YouTube: sends video
- CLI orchestration → YouTube downloader: downloads video
- YouTube downloader → YouTube: fetches video