Pretty straight forward using the python Elgato stream deck library
For more information, see the wiki Searching the Forum for Answers section.