Any way to get getgpio command in home assistant os

As I needed two features, gpio and a backup internet path, neither currently support by HA OS, this is what I did.