This looks like a fantastic library that I'd like to use, however, I am unable to build this with bazel due to the extra_require  at https://github.com/thiezn/iperf3-python/blob/master/setup.py#L65 that references iperf3.
https://github.com/bazelbuild/rules_python#using-the-packaging-rules
bazel installs iperf3, but then tries to add that dependency which breaks the build.
Will have to resort to using subprocess to parse the output, but please let me know if you fix this, or have a workaround!