Skip to main content

ez-yt-dlp

Small, focused wrapper around yt-dlp to make common downloads easier.

This is a single-file Python module that provides a clean CLI for downloading videos and audio from YouTube and other sites supported by yt-dlp.

Features

  • Simple CLI - argparse-based with sensible defaults
  • Interactive mode - Run without arguments for guided prompts
  • Video/Audio modes - Download video (mp4) or extract audio (mp3, m4a, etc.)
  • Playlist support - Download single items or entire playlists
  • Dry-run - Preview commands before executing
  • Auto-install - Attempts to install yt-dlp if missing (can be disabled)

Install

This project is distributed exclusively through Python pip.

From PyPI

python3 -m pip install --user ez-yt-dlp
ez-yt-dlp --help

There is no binary or script distribution. The ez-yt-dlp command is automatically created when the package is installed via pip.

Usage

Interactive mode

ez-yt-dlp

Command-line mode

# Download video (default)
ez-yt-dlp "https://www.youtube.com/watch?v=..."

# Download audio (mp3)
ez-yt-dlp --audio "https://www.youtube.com/watch?v=..."

# Download audio playlist as m4a
ez-yt-dlp --audio --format m4a --playlist "https://..."

# Custom output directory
ez-yt-dlp --output ~/Downloads "https://..."

# Dry-run (preview command)
ez-yt-dlp --dry-run --audio "https://..."

# Don't auto-install yt-dlp
ez-yt-dlp --no-install "https://..."

Interactive mode keys

  • v / vp — download a video or video playlist
  • a / ap — extract audio from a track or playlist
  • q — quit

Exit codes

  • 0 — success or user quit
  • 1 — invalid arguments or output path
  • 2 — yt-dlp is unavailable
  • 130 — cancelled by the user

Options

usage: ez-yt-dlp [-h] [--video | --audio] [--playlist] [--output OUTPUT]
                 [--format FORMAT] [--dry-run] [--no-install] [--version]
                 [url]

positional arguments:
  url                  URL to download (if omitted, interactive mode is
                       started)

options:
  -h, --help           show this help message and exit
  --video, -v          Download video (default)
  --audio, -a          Extract audio
  --playlist, -p       Allow playlists (if omitted single item is assumed)
  --output, -o OUTPUT  Save directory (default: $HOME/Videos)
  --format, -f FORMAT  Audio format when extracting audio (e.g. mp3, m4a).
                       Only valid with --audio
  --dry-run            Print the command instead of executing it
  --no-install         Do not attempt to auto-install yt-dlp if missing
  --version            Print version and exit

Development

Run tests

python3 -m pip install -e ".[dev]"
python3 -m pytest -v

Project structure

ez-yt-dlp/
├── ez_yt_dlp.py             # Main module
├── pyproject.toml           # Package config
├── tests/test_cli.py        # Test suite
├── tools/                   # Lightweight test runner
├── .github/workflows/       # CI
├── release.sh               # Release automation
├── RELEASE.md               # Release guide
└── README.md                # This file

Requirements

  • Python 3.10+
  • yt-dlp
  • ffmpeg and ffprobe for video merging and audio extraction

Release (for maintainers)

# 1. Bump version in pyproject.toml and ez_yt_dlp.py

# 2. Run release script
./release.sh

# 3. Follow prompts to build and upload to PyPI

Requires: python3 -m pip install -e ".[dev]". Set PYTHON_BIN to override the release interpreter.

License

MIT

Metadata

Release files for ez-yt-dlp 0.3.0

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

Source distribution (sdist)

Source distribution for ez-yt-dlp 0.3.0
File Size Uploaded Provenance Actions
ez_yt_dlp-0.3.0.tar.gz 12.5 kB Without provenance Details for ez_yt_dlp-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ez-yt-dlp 0.3.0
File Interpreter ABI Platform Actions
ez_yt_dlp-0.3.0-py3-none-any.whl Python 3 none any Details for ez_yt_dlp-0.3.0-py3-none-any.whl

Total release size: 19.5 kB

Release files / ez_yt_dlp-0.3.0.tar.gz

Download URL ez_yt_dlp-0.3.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16be13673bfdb937f3848ebd01091e13505993df17571cd10b3f8356cd9454ae
BLAKE2b-256 checksum
How to use checksums
876d35dcee38f51f36957d037a0d82416f1e204d400131d6bd61bde0ab286073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / ez_yt_dlp-0.3.0-py3-none-any.whl

Download URL ez_yt_dlp-0.3.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72b4616169ea56ebf9d11982bcde0191680a06c699f17654c54058154e28d17d
BLAKE2b-256 checksum
How to use checksums
70f061211d12b383677352316e2bdecf7620e8d02b0365615b1168232869473f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for ez-yt-dlp 0.3.0

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.

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