Skip to main content

ytmdpy - Youtube Music Desktop Python

A Python API wrapper for the companion server for ytmdesktop/ytmdesktop

Very simple example client

from asyncio import run
import asyncio
from ytmdpy.client import Client

APP_ID = 000000000000000000000 # Any int of 2-32 long
APP_NAME = "Any string here"
APP_VERSION = "0.0.1" # A formatted version string

async def main() -> None:
    client = Client(
        app_id=APP_ID,
        app_name=APP_NAME,
        app_version=APP_VERSION,
    )
    await client.authenticate()
    while True:
        # Change song every 10 seconds.
        await client.next()
        await asyncio.sleep(10)

if __name__ == "__main__":
    run(main())

If you save the authentication tokens (recommended)

await client.authenticate(token="YOUR SAVED TOKEN HERE")

Metadata

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

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / ytmdpy-1.0.0.tar.gz

Download URL ytmdpy-1.0.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c7da559d6571ce151ee90ae4dba264a2f01f5ff3a416fc0d99511e7643898558
BLAKE2b-256 checksum
How to use checksums
a21c91bea1b46437b05969066e8439e647ed973d7e4f8cfa0dfa3564b8381be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

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

Download URL ytmdpy-1.0.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dea67c6882fc048625828c8872320228074b5454f38d049b2c25c99efe5d6a64
BLAKE2b-256 checksum
How to use checksums
5da35bf6531c39e438a61df54c07aa69c46fd9ebc941d85cc31601d6eda4799a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

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