g++ -I blackmagic_api/mac_os/include/ -framework CoreFoundation blackmagic_api/mac_os/include/BMDSwitcherAPIDispatch.cpp main.cpp RecordingControl.cpp SwitcherConnection.cpp -o Main.o
./Main.o
The offical Black Magic Library is written in C++ so we need to create a Python wrapper to be able to call it (I'm using CTYPES to do it)
g++ -I blackmagic_api/mac_os/include/ -framework CoreFoundation -shared -fPIC
blackmagic_api/mac_os/include/BMDSwitcherAPIDispatch.cpp
Main.cpp RecordingControl.cpp SwitcherConnection.cpp -o libatemswitcher.so
Simply open atemswitcher_wrapper.py and run it