Teamcity status macro for Trac

I had a need to print the build status of our teamcity server in trac. After researching various solutions, I figured a trac macro would best fit. It was a surprisingly simple solution so I figured I would share it here.
I created a file called “TeamCityStatus.py” and placed it into my trac/plugins folder.
from [...]