Hi there,
pyroute2 [1] is a great library to be able to grow beyond net-tools [2]. However, it only supports mainly Linux, see also svinota/pyroute2#437. So, we might want to figure out a way to either bring support for macOS and Windows to pyroute2 or find a different solution.
With kind regards,
Andreas.
[1] https://github.com/svinota/pyroute2
[2] https://lwn.net/Articles/710533/