Check out <#C1XCLA5DZ|kolide>, <#C1KQV03PC|doorman...
# general
g
Check out #kolide, #doorman or #zentral for existing projects that have that functionality. The docs also have a sample python project https://osquery.readthedocs.io/en/stable/deployment/remote/#remote-server-api