Python libpulse is an asyncio and ctypes interface to the Pulseaudio and Pipewire pulse library. The pulse main loop is implemented on top of the asyncio event loop.
The interface is meant to be complete and has 85% test coverage.
Constants, structures, plain functions and async functions (i.e. using a callback) are made available by importing the libpulse module of the libpulse package. The package includes the 'pactl.py' tool that implements all the pactl commands except one, most commands output can be parsed by the Python interpreter and inspected interactively.
The project is hosted at https://gitlab.com/xdegaye/libpulse.
The documentation at https://libpulse.readthedocs.io/en/stable/.
Regards.
Xavier de Gaye
The interface is meant to be complete and has 85% test coverage.
Constants, structures, plain functions and async functions (i.e. using a callback) are made available by importing the libpulse module of the libpulse package. The package includes the 'pactl.py' tool that implements all the pactl commands except one, most commands output can be parsed by the Python interpreter and inspected interactively.
The project is hosted at https://gitlab.com/xdegaye/libpulse.
The documentation at https://libpulse.readthedocs.io/en/stable/.
Regards.
Xavier de Gaye