72.24. python3-ytmusicapi-1.12.2
Unofficial YouTube Music API for Python: search, library, playlists and uploads
1.12.2-1 · MIT · 0.1 SBU · 647.2 KiB, 115 files · 40_lang, 160 of 186 · ports/core/python-net/python3-ytmusicapi
Homepage: https://ytmusicapi.readthedocs.io/
ytmusicapi is an unofficial Python client for YouTube Music’s web API: search, artist, album and playlist pages, the user’s library and uploads. audiotube embeds a Python interpreter and calls it for everything it shows. It sends its requests through python3-requests, which is in depends.
Depends on: python3, python3-pip, python3-setuptools, python3-setuptools-scm, python3-requests.
Required by (1): audiotube.
Sources: python3-ytmusicapi-1.12.2.tar.gz (647.9 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install python3-ytmusicapi'
build.sh:
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .
Programs: ytmusicapi.
Directories: /usr/lib/python3.14/site-packages/ytmusicapi, /usr/lib/python3.14/site-packages/ytmusicapi-1.12.2.dist-info, /usr/share/licenses/python3-ytmusicapi.
It takes its version through python3-setuptools-scm, which reads the PKG-INFO in the release archive. The package installs the ytmusicapi command, which writes the browser or OAuth credentials file a script then hands to the library.
YouTube Music changes its web API without notice, and ytmusicapi follows with frequent releases; a version a few months old may fail on pages audiotube opens.
The version is the one audiotube names as tested, TESTED_YTMUSICAPI_VERSION in its src/ytmusic.h. audiotube compares the installed version with that string at every start and shows an “untested version of ytmusicapi” error for any other, newer ones included, so a bump of this port moves with an audiotube release that names the new version.
The package carries the translated result-parsing tables under ytmusicapi/locales/ as .mo files inside its Python package. They are data the parser matches YouTube Music’s localised responses against, not interface translations, and they are not under /usr/share/locale.