ApacheIgnite二进制客户端PythonAPI

pyignite的Python项目详细描述


点燃python客户端

ApacheIgniteThin(二进制协议)客户端,用Python3编写。

先决条件

  • Python3.4或更高版本(测试了3.6),
  • 访问apache ignite节点,本地或远程。当前瘦客户端 版本在ApacheIgnite2.7.0(二进制客户端协议1.2.0)上测试。

安装

对于最终用户

如果您只想在项目中使用pyignite模块,请执行:

$ pip install pyignite

对于开发者

如果要运行测试、示例或生成文档,请克隆 整个存储库:

$ git clone git@github.com:apache/ignite.git
$ cd ignite/modules/platforms/python
$ pip install -e .

这将把pyignite的存储库版本安装到您的环境中 在所谓的“开发”或“可编辑”模式下。你可能会读到更多关于 editable installspip手册中。

然后运行requirements文件夹的内容进行安装 使用

$ pip install -r requirements/<your task>.txt

您可能还想查阅setuptools手册,了解如何使用setup.py

文档

The package documentationrtd为您提供方便。

如果您想从源代码构建文档,那么开发人员是否 如上所述安装,然后运行以下命令:

$ cd ignite/modules/platforms/python
$ pip install -r requirements/docs.txt
$ cd docs
$ make html

然后打开ignite/modules/platforms/python/docs/generated/html/index.html 在浏览器中。

示例

使用PyIgnite的一些示例在 ignite/modules/platforms/python/examples文件夹。它们是广泛的 在中评论 “Examples of usage” 文档的一节。

这段代码意味着它是在带有pyignite包的环境中运行的 已安装,并且apache ignite node正在localhost:10800上运行。

测试

运行

$ cd ignite/modules/platforms/python
$ python setup.py pytest

nb!所有测试都需要在localhost:10800上运行apache ignite node。 如果需要更改连接参数,请参阅 testing

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

推荐PyPI第三方库


热门话题
请求响应模式的java JMS   java如何从SeleniumWebDriver中的“Span Type下拉列表”中选择值   java JPA相当于Hibernate的@Generated(GenerationTime.ALWAYS)   java ActiveMQ查询:如何启动   java如何在jsp文件中使用freemarker标记库?   java如何在TabsLayout中用另一个片段替换一个片段的内容?   国际化如何理解Java教程国际化定制资源包加载示例?   XML配置中的java spring log4j无法为日志信息创建文件   oracle11g JDK 6:有没有办法运行一个新的java进程来执行指定类的主方法   java在avro模式中使用“default”   缺陷跟踪我在哪里可以提交关于FOSS Java Sound实施组织的缺陷报告。类路径。冰岛。pulseaudio。Pulseaudiosourcedaline?   编码Java系统。在和系统中。Sun/Oracle和IBM JVM解决方案在读写标准字节数组方面存在差异   java如何将列表项作为查询参数添加到字符串url中?   将自定义库导出到可导入jar文件java