Skip to main content

ytdlm (Python SDK)

Python SDK and discord.py voice helper for ytdlm — a Real-Time SABR UMP WebM/Opus (251 / 774) Audio Streaming & Seekable Downloading Engine.

Installation

pip install ytdlm

(Requires the ytdlm Node.js CLI or HTTP Gateway: npm install -g ytdlm)

Quick Start

from ytdlm import YtdlmClient

client = YtdlmClient(gateway_url="http://127.0.0.1:8787")

# 1. Resolve track metadata
info = client.info("aqz-KE-bpKQ")
print(info.title, info.duration_sec)

# 2. Build direct HTTP stream URL for FFmpegOpusAudio (with instant seek & loop)
stream_url = client.get_stream_url("aqz-KE-bpKQ", start_sec=30, loop=True)

discord.py Bot Integration

import discord
from ytdlm import YtdlmClient

ytdlm = YtdlmClient("http://127.0.0.1:8787")
source = await discord.FFmpegOpusAudio.from_probe(
    ytdlm.get_stream_url("aqz-KE-bpKQ", start_sec=0)
)
voice_client.play(source)

License

MIT License — See also Legal Disclaimer.

Metadata

Release files for ytdlm 1.0.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 ytdlm 1.0.0
File Size Uploaded
ytdlm-1.0.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ytdlm 1.0.0
File Interpreter ABI Platform
ytdlm-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / ytdlm-1.0.0.tar.gz

Download URL ytdlm-1.0.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6838c8443db4ccffba8e5fcd52a339ed76cd1f2eaccd7457a41398ceac69b29
BLAKE2b-256 checksum
How to use checksums
3af030d1314958d99dbfa221a188f0a57183dc519f3179e8d96305fb8b0976c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / ytdlm-1.0.0-py3-none-any.whl

Download URL ytdlm-1.0.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fe56f412f4acf0727f25ca8fab2412e2f2d05252efda6e760429eb521900011
BLAKE2b-256 checksum
How to use checksums
146ee7b8a0ead454a1249109ef18d674a1209c8e727255e1d7fc1234de38cb4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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