A Pi API (.py) - just PUT or GET pins

At least two of my projects have been as simple as “listen to an endpoint, change a pin”, so I decided to wrap these into a simple API and created A Pi API, in python so I could add .py to the description.
So, now to move my relay controlled mains lighting to this new application, there’s an easy action for that, no re-etching!