Youtube Music Desktop API Wrapper
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ytmdpy-1.0.0.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ytmdpy-1.0.0.tar.gz.
File metadata
- Download URL: ytmdpy-1.0.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7da559d6571ce151ee90ae4dba264a2f01f5ff3a416fc0d99511e7643898558
|
|
| MD5 |
6a2e02be813db1c15c5516c8dcfef7f9
|
|
| BLAKE2b-256 |
a21c91bea1b46437b05969066e8439e647ed973d7e4f8cfa0dfa3564b8381be5
|
File details
Details for the file ytmdpy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ytmdpy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dea67c6882fc048625828c8872320228074b5454f38d049b2c25c99efe5d6a64
|
|
| MD5 |
3ff22706f30b590562f487cc14a163f6
|
|
| BLAKE2b-256 |
5da35bf6531c39e438a61df54c07aa69c46fd9ebc941d85cc31601d6eda4799a
|