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

From PyPI

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

From source

# Install yt-dlp for direct use
python3 -m pip install --user -r requirements.txt

# Run directly
python3 ez_yt_dlp.py --help

# Or install as a package
python3 -m pip install --user .

Installing the package provides the ez-yt-dlp command.

Usage

Interactive mode

ez-yt-dlp
# or
python3 ez_yt_dlp.py

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
# or without pytest
python3 tools/run_tests_no_pytest.py

Project structure

ez-yt-dlp/
├── ez_yt_dlp.py             # Main module
├── bin/ez-yt-dlp            # Checkout launcher
├── tests/test_cli.py        # Test suite
├── tools/                   # Lightweight test runner
├── .github/workflows/       # CI
├── pyproject.toml           # Package config
├── 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.2.3

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.2.3
File Size Uploaded Provenance Actions
ez_yt_dlp-0.2.3.tar.gz 12.6 kB Without provenance Details for ez_yt_dlp-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 19.6 kB

Release files / ez_yt_dlp-0.2.3.tar.gz

Download URL ez_yt_dlp-0.2.3.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92f1259c09e3eb7bd9ee72505da2c8ddd0f239400746d2eb998ffe0851e5f4d6
BLAKE2b-256 checksum
How to use checksums
9e07d25c7c875643320a4a7fc53cb8cde8a28e92aae09fd1dd8ac92840afdc3a
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.2.3-py3-none-any.whl

Download URL ez_yt_dlp-0.2.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13416aa492dfee75b280e74e085fe06177d4ed39fab44524eda43a60cff197be
BLAKE2b-256 checksum
How to use checksums
82ad4d616ceab726ca1441975aef53539b8c2ac7c4378a54cf56c3feff932428
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.2.3

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