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.2

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

Built distribution (wheel)

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

Total release size: 11.9 kB

Release files / ytdlm-1.1.2.tar.gz

Download URL ytdlm-1.1.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2659fae6b748b9fcc7165e832994d1e6ece0a32cb2fe55b17b66d4eb70c80a9d
BLAKE2b-256 checksum
How to use checksums
e314a1028323932e52663b2795ac66e9bec2340a6da4d2462fdda80c31dd0831
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 16, 2026.

Transparency log

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

Download URL ytdlm-1.1.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff7f16bb9ccf7db0eb590bf9432dfaa6c4341340d859c2c2cd3ec628b5636935
BLAKE2b-256 checksum
How to use checksums
1cb88d4357de0b59f9b08d8e8aa4193e69dad471f453b0c6f2b2f1378e43c668
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 16, 2026.

Transparency log

Security for ytdlm 1.1.2

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.2.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 16, 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