{"library":"pulsectl","title":"pulsectl","description":"Python high-level interface and ctypes-based bindings for PulseAudio (libpulse). Version 24.12.0 provides an object-oriented wrapper for controlling PulseAudio volume, sinks, sources, and more.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pulsectl"],"cli":null},"imports":["from pulsectl import Pulse","from pulsectl import PulseVolumeInfo"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pulsectl import Pulse\n\nwith Pulse('my-app') as pulse:\n    sink_list = pulse.sink_list()\n    for sink in sink_list:\n        print(sink.description, sink.volume)\n    # Set volume of first sink\n    if sink_list:\n        pulse.volume_set_all_chans(sink_list[0], 0.5)","lang":"python","description":"Connect to PulseAudio, list sinks, and set volume.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}