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.1.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.1.0
File Size Uploaded Provenance Actions
ytdlm-1.1.0.tar.gz 5.7 kB With provenance Details for ytdlm-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / ytdlm-1.1.0.tar.gz

Download URL ytdlm-1.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
19e60de6b75ae8939088c9c2fa2415847f76ef74ef046ac2eb63ff957315de84
BLAKE2b-256 checksum
How to use checksums
79efecef73d4441df4fcedac812de15652ac50c3ff479b5db20d2399a321082d
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.1.0-py3-none-any.whl

Download URL ytdlm-1.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5a0f5f38259ddc590d356260d2de62335f9eb68ea383db538e65afdc26ae5bd
BLAKE2b-256 checksum
How to use checksums
1f7278ad7cafc1af445282ed86e84e582087d3d47f846d54a61cc85f093103b1
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

Security for ytdlm 1.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ytdlm-1.1.0.tar.gz

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

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