File: playback.py

package info (click to toggle)
python-musicpd 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: python: 792; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 173 bytes parent folder | download
1
2
3
4
5
6
7
import musicpd

# Using a context manager
# (use env var if you need to override default host)
with musicpd.MPDClient() as client:
    client.play()
    client.setvol('80')