the post-receive hook is written in python and i hated every minute of it
but it will be low-maintenance and stable, and it has zero dependencies beyond the standard library
for something which needs to interact with the filesystem and output both xml and json that’s pretty good