Both [pigpio](http://abyz.me.uk/rpi/pigpio/index.html) and [gpiozero](https://gpiozero.readthedocs.io/en/stable/) provide Python modules which can run on any Python capable machine (e.g. Windows, Macs, Linux etc).

Both pigpio and gpiozero allow you to control and monitor the GPIO of one or more networked Pis.

The pigpio [daemon](http://abyz.me.uk/rpi/pigpio/pigpiod.html) must be running on each Pi.