ZeroMQ™的CLI工具

zeroless-tools的Python项目详细描述


Build StatusCoverage StatusCodacyPyPiDocsLicense

大多数使用网络编程的人都知道netcat是一个非常有用的工具 动态建立和测试TCP/UDP连接。然而,ZeroMQ社区确实 不提供等效的应用程序。所以,为了测试你的ZMQ插座,你 必须编写自己的解决方案为了解决这个问题 已创建行接口(cli)。

这样,您就可以以一种与语言无关的方式测试您的0mq连接,尽管 使用的消息模式。

安装

$ pip install zeroless-tools

用法

$ zeroserver -h

usage: Zeroless Server Cli [-h][-n amount of parts][a port between 1024 and 65535]{rep,push,sub,pair,req,pub,pull} ...

The Zeroless Server Cli shall create an endpoint for accepting connections
and bind it to the chosen ØMQ messaging pattern

positional arguments:
  [a port between 1024 and 65535]
                        the open port to bind/connect to

optional arguments:
  -h, --help            show this help message and exit
  -n amount of parts, --numParts amount of parts
                        the amount of parts (i.e. frames) per message
                        (default=1)

messaging pattern:
  The ØMQ API implements several messaging patterns, each one defining a
  particular network topology

  {rep,push,sub,pair,req,pub,pull}
                        Choose among Publish/Subscribe (Pub/Sub),
                        Request/Reply (Req/Rep), Pipeline (Push/Pull) and
                        Exclusive Pair (Pair)

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version
$ zeroclient -h

usage: Zeroless Client Cli [-h][-i IP][-n amount of parts][a port between 1024 and 65535]{sub,push,pair,pull,req,rep,pub} ...

The Zeroless Client Cli shall connect to the specified endpoint using the
chosen ØMQ messaging pattern

positional arguments:
  [a port between 1024 and 65535]
                        the open port to bind/connect to

optional arguments:
  -h, --help            show this help message and exit
  -i IP, --ip IP        the IP of the endpoint to connect to
                        (default=127.0.0.1)
  -n amount of parts, --numParts amount of parts
                        the amount of parts (i.e. frames) per message
                        (default=1)

messaging pattern:
  The ØMQ API implements several messaging patterns, each one defining a
  particular network topology

  {rep,push,sub,pair,req,pub,pull}
                        Choose among Publish/Subscribe (Pub/Sub),
                        Request/Reply (Req/Rep), Pipeline (Push/Pull) and
                        Exclusive Pair (Pair)

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version

测试

运行单个测试:

$ py.test tests/test_desired_module.py

运行所有测试:

$ python setup.py test

或者,您可以使用tox:

$ tox

许可证

版权所有2014 Lucas Lira Gomesx8lucas8x@gmail.com

此程序是免费软件:您可以重新分发和/或修改 根据由 自由软件基金会,或者许可证的第3版,或者 (由您选择)任何更高版本。

这个程序的发布是希望它能有用, 但没有任何保证;甚至没有 适销性或适合某一特定目的的适销性。见 GNU通用公共许可证了解更多详细信息。

你应该收到GNU通用公共许可证的副本 还有这个节目。如果没有,请参见<;http://www.gnu.org/licenses/>;。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在JSP中添加自定义隐式对象   java MasterMindResource泄漏?   不同的c#java结果加密   java为什么安卓 studio显示“constraintlayout中缺少约束”错误?   java Make Logback将日志打印到文件中   java如何在Google应用程序引擎中设置日期时间?   jeditorpane如何阻止java HTMLEditorKit自动关闭我的标记   返回到Activity onCreate()时,不会调用java函数   java为什么我在这个对象上得到一个NullPointerException?   在java中,如何使用包含数组的参数调用图形方法?   java如何在Play framework 2应用程序中存储Akka参与者列表?   ssh使用java将文件从一个solaris 9复制到另一个solaris 9   网络Java服务器正在等待客户端响应   java Spring mvc从formBackingObject()重定向到页面   java Spark:JavaRDD<Tuple2>到javapairdd<>   java如何动态调用基类中由字符串值指定的子类方法?