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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ytmdpy-1.0.0.tar.gz | 7.5 kB | Without provenance | Details for ytmdpy-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ytmdpy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ytmdpy-1.0.0-py3-none-any.whl |
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
|
Security for ytmdpy 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.