usb-descriptors is a library that collects common data-processing code for USB tasks; and is meant to support a variety of projects, including USB stacks, analyzers, and other tools that work with USB ...
This gives a simple script with zero dependencies that can easily run on any Linux device (eg: Raspberry Pi) that is setup to emulate an USB Gadget, and send Multimedia Key presses such as Volume Up, ...