Skip to main content

ytdlm (Python SDK)

Python SDK and streaming 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.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 ytdlm 1.1.3
File Size Uploaded Provenance Actions
ytdlm-1.1.3.tar.gz 5.9 kB With provenance Details for ytdlm-1.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 12.2 kB

Release files / ytdlm-1.1.3.tar.gz

Download URL ytdlm-1.1.3.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a3c2c2d95a0a19819f2ec904785a3c1c0cf4e09c82feaaacb2b53a47c6f7134e
BLAKE2b-256 checksum
How to use checksums
ed94869ddac429d670223a189c28e8647db7700169e53ddf9fca10438666bbdc
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 20, 2026.

Transparency log

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

Download URL ytdlm-1.1.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b442e4d5ac296641050976e6e7487cb3c7413ca24e92136c22c7226f582887f
BLAKE2b-256 checksum
How to use checksums
d49460fc249f597f0d8354cf3ac32644bfaf9f31523acc4c5f9bbb4c05efdfd5
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 20, 2026.

Transparency log

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

Full provenance

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

Select from 2 files

Attestation for ytdlm-1.1.3.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 20, 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