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/ytdlm)

Quick Start

from ytdlm import YtdlmClient

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

# 1. Resolve track metadata (with optional speed 0.10..4.00)
info = client.get_info("aqz-KE-bpKQ", speed="1,25")
print(info.title, info.duration_sec, info.speed, info.atempo_filter)

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

discord.py Bot Integration

import discord
from ytdlm import YtdlmClient

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

License

MIT License — See also Legal Disclaimer.

Metadata

Release files for ytdlm 1.1.1

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

Built distribution (wheel)

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

Total release size: 11.9 kB

Release files / ytdlm-1.1.1.tar.gz

Download URL ytdlm-1.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8e3a1c3a4fd58acec7422c6f74098ad837f27b3b13e68687d4fddc2d2f3f740f
BLAKE2b-256 checksum
How to use checksums
4b40bf380806e3491bf067c96742df4418d0e0571e26246590283501afca955c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

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

Download URL ytdlm-1.1.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d0bd0fefa177f321fc7a5bbb5b1c7d5098e7f23e0145a896968182434c1cbef
BLAKE2b-256 checksum
How to use checksums
bcb002917dc0f93745acb6a693e90f5d7e93fba9d9f76970e1d745654e2851ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for ytdlm 1.1.1

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.1.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 Nov 4, 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