When I run my script from the command line I can use - am actually prompted to use - System Preferences to add
ssh-keygen-wrapper to be authorised to access the Calendar.
But when I run the script as a CGI program it is not authorised to access the Calendar - it is running as
nobody and fails - and I don't know how to give the CGI-invoked script required permission.
A related question is even whether I should as giving
nobody access to Calendar ... but that's a separate issue.
macOS High Sierra Python CGI script using an AppleScript to read Calendar events