iperf3的python包装器
iperf3的Python项目详细描述
iperf3 python:iperf3的pythoniperf3 python:iperf3的pythoniperf3 python:iperf3的pythoniperf3的pythoniperf3的pythoniperf3的pythoniperf3:piperf3的pythoniperf3的python包装器
============
========
=====
=>详细文档,网址
>`iperf3-python.readthedocs.org/>;http://iperf3 python.readthedocs.org/>====================(一)有权使用;`_
iperf3 for python为优秀的iperf3
实用程序提供了包装。iperf3是对原始iperf
实现的完全重写。关于"官方iperf3
站点<;http://software.es.net/iperf/>;``uuuu
python包装器,以便以python方式轻松集成到您自己的python脚本中
它提供的libiperf api。
常见的linux发行版都提供来自自己存储库的安装。这些
可能已经过时,因此最好从官方的"iperf3网站"http://software.es.net/iperf/>;`\uu
安装。
**注意**libiperf api仅在3.0.6中引入,因此请确保已更新了iperf3安装版本
。
**注意**libiperf api添加了一个功能,以编程方式从库中检索json输出。这使我们能够检索结果,而不必从stdout中删除输出。实际上,这意味着
如果要将脚本的stdout/stderr重定向到其他地方,则至少需要iperf3 3 3.1版
-从源代码(首选)安装
。代码::bash
wget http://downloads.es.net/pub/iperf/iperf-3-current.tar.gz
tar xvf iperf-3-current.tar.gz
cd iperf-3.3//代码::bash
sudo apt get install iperf3
-cenos/redhat
…代码::bash
sudo yum install iperf3
一旦安装了iperf3实用程序,安装python包装的最简单方法就是通过
`pypi<;https://pypi.python.org/pypi/iperf3>;`\uuu
。代码::bash
pip install iperf3
代码::bash
git clone https://github.com/thiezn/iperf3 python.git
cd iperf3 python
python3 setup.py install
——
有关详细示例,请查看"示例"页<;http://iperf3 python.readthedocs.io/en/latest/examples.html>;`_或
有关详细文档,请访问"iperf3-python.readthedocs.org<;https://iperf3 python.readthedocs.org/>;`\uuu
**server**
代码::python
>;>import iperf3
>;>server=iperf3.server()
>;>result=server.run()
>;>result.remote_host
"10.10.10.10"
**client**
代码::python
>;>import iperf3
>;>client=iperf3.client()
>;>client.duration=1
>;>client.server主机名=127.0.0.1'
>;>client.port=5201
>;>result=client.run()
>;>;>result.sent_mbps
32583.293914794922
external dependencies
----
-iperf3
-libiperf.so.0(附带iperf3>;=3.0.6)
>
-
>
>
>
-3.0.6
-3.0.7
-3.0.8
-3.0.8
-3.0.9
-3.0.10
-3.0.11
-3.0.12
-3.0.12
-3.1.1.1
-3.1.1.2
-3.1.2
-3.1.1.2
-3.1.2 3.1.3
-3.1.4
-3.1.5
-3.1.6
-3.1.7
-3。2
-3.3
-3.4
-3.5
-3.6
-通过"coveralls.io<;https://coveralls.io/>;``uuuu
-对以下python版本进行测试:
-2.7
-3.6
。| pypi status image::https://img.shields.io/pypi/v/iperf3.svg
:目标:https://pypi.python.org/pypi/iperf3
。|构建状态图像::https://travis-ci.org/thiezn/iperf3-python.svg?branch=master
:目标:https://travis ci.org/thiezn/iperf3 python
…|覆盖状态图像::https://coveralls.io/repos/github/thiezn/iperf3-python/badge.svg?branch=master
:目标:https://coveralls.io/github/thiezn/iperf3-python?分支=主
…|文档状态图像::https://readthedocs.org/projects/iperf3-python/badge/?version=latest
:目标:http://iperf3-python.readthedocs.io/en/latest/?徽章=最新的:变更日志:
>发布历史
-
<0.1.11(2019-04-13)
+++++++++++++++++
-在udp测试结果中修复kbu和mbu(感谢@gleichda)
-添加省略选项(感谢@christofkaufmann)
<0.1.10(2018-03-28)
+++++++++++++++++++++++++++++++++++++++++++++++
-允许手动在iperf3类上使用lib-name kwarg设置libiperf库路径和名称
0.1.9(2018-02-22)
+++++++++++++++
-使用find\u library加载libiperf(感谢@austinpayne)。这将允许iperf3 lib在mac os x上运行。
0.1.8(2018-01-24)
++++++++++++符合iperf3 c库。BulkSize参数仍然可用于向后兼容
0.1.7(2017-08-02)
++++++++++@p0intr)
0.1.5(2017-05-22)
+++++++++++++br/>-iperf3.client()现在允许stdout重定向(iperf3 version=>;3.1必需)
0.1.4(2017-05-15)
+++++++++++屏幕
0.1.2(2016-09-22)
++++++++++++Travis Build to Test with IPERF3 versions 3.0.6 to 3.1.3
0.1.0(2016-08-18)
+++++++++++++文档调整
0.0.1(2016-08-18)
+++++++++++
============
========
=====
=>详细文档,网址
>`iperf3-python.readthedocs.org/>;http://iperf3 python.readthedocs.org/>====================(一)有权使用;`_
iperf3 for python为优秀的iperf3
实用程序提供了包装。iperf3是对原始iperf
实现的完全重写。关于"官方iperf3
站点<;http://software.es.net/iperf/>;``uuuu
它提供的libiperf api。
常见的linux发行版都提供来自自己存储库的安装。这些
可能已经过时,因此最好从官方的"iperf3网站"http://software.es.net/iperf/>;`\uu
安装。
**注意**libiperf api仅在3.0.6中引入,因此请确保已更新了iperf3安装版本
。
**注意**libiperf api添加了一个功能,以编程方式从库中检索json输出。这使我们能够检索结果,而不必从stdout中删除输出。实际上,这意味着
如果要将脚本的stdout/stderr重定向到其他地方,则至少需要iperf3 3 3.1版
-从源代码(首选)安装
。代码::bash
wget http://downloads.es.net/pub/iperf/iperf-3-current.tar.gz
tar xvf iperf-3-current.tar.gz
cd iperf-3.3//代码::bash
sudo apt get install iperf3
-cenos/redhat
…代码::bash
sudo yum install iperf3
一旦安装了iperf3实用程序,安装python包装的最简单方法就是通过
`pypi<;https://pypi.python.org/pypi/iperf3>;`\uuu
。代码::bash
pip install iperf3
代码::bash
git clone https://github.com/thiezn/iperf3 python.git
cd iperf3 python
python3 setup.py install
有关详细示例,请查看"示例"页<;http://iperf3 python.readthedocs.io/en/latest/examples.html>;`_或
有关详细文档,请访问"iperf3-python.readthedocs.org<;https://iperf3 python.readthedocs.org/>;`\uuu
**server**
代码::python
>;>import iperf3
>;>server=iperf3.server()
>;>result=server.run()
>;>result.remote_host
"10.10.10.10"
**client**
代码::python
>;>import iperf3
>;>client=iperf3.client()
>;>client.duration=1
>;>client.server主机名=127.0.0.1'
>;>client.port=5201
>;>result=client.run()
>;>;>result.sent_mbps
32583.293914794922
external dependencies
----
-iperf3
-libiperf.so.0(附带iperf3>;=3.0.6)
>
-
>
>
>
-3.0.6
-3.0.7
-3.0.8
-3.0.8
-3.0.9
-3.0.10
-3.0.11
-3.0.12
-3.0.12
-3.1.1.1
-3.1.1.2
-3.1.2
-3.1.1.2
-3.1.2 3.1.3
-3.1.4
-3.1.5
-3.1.6
-3.1.7
-3。2
-3.3
-3.4
-3.5
-3.6
-通过"coveralls.io<;https://coveralls.io/>;``uuuu
-对以下python版本进行测试:
-2.7
-3.6
。| pypi status image::https://img.shields.io/pypi/v/iperf3.svg
:目标:https://pypi.python.org/pypi/iperf3
。|构建状态图像::https://travis-ci.org/thiezn/iperf3-python.svg?branch=master
:目标:https://travis ci.org/thiezn/iperf3 python
…|覆盖状态图像::https://coveralls.io/repos/github/thiezn/iperf3-python/badge.svg?branch=master
:目标:https://coveralls.io/github/thiezn/iperf3-python?分支=主
…|文档状态图像::https://readthedocs.org/projects/iperf3-python/badge/?version=latest
:目标:http://iperf3-python.readthedocs.io/en/latest/?徽章=最新的:变更日志:
>发布历史
-
<0.1.11(2019-04-13)
+++++++++++++++++
-在udp测试结果中修复kbu和mbu(感谢@gleichda)
-添加省略选项(感谢@christofkaufmann)
<0.1.10(2018-03-28)
+++++++++++++++++++++++++++++++++++++++++++++++
-允许手动在iperf3类上使用lib-name kwarg设置libiperf库路径和名称
0.1.9(2018-02-22)
+++++++++++++++
-使用find\u library加载libiperf(感谢@austinpayne)。这将允许iperf3 lib在mac os x上运行。
0.1.8(2018-01-24)
++++++++++++符合iperf3 c库。BulkSize参数仍然可用于向后兼容
0.1.7(2017-08-02)
++++++++++@p0intr)
0.1.5(2017-05-22)
+++++++++++++br/>-iperf3.client()现在允许stdout重定向(iperf3 version=>;3.1必需)
0.1.4(2017-05-15)
+++++++++++屏幕
0.1.2(2016-09-22)
++++++++++++Travis Build to Test with IPERF3 versions 3.0.6 to 3.1.3
0.1.0(2016-08-18)
+++++++++++++文档调整
0.0.1(2016-08-18)
+++++++++++