Java本地接口的Python包装器(基于CyType / CFFI的JavaBRIPLE)
jtypes.javabridge的Python项目详细描述
当前仅作为占位符(因为基本包jtypes.jvm仍在开发中)
jtypes.javabridge
java本机接口的python包装器。
概述
jtypes.javabridge is a bridge between Python and Java, allowing these to intercommunicate.It is an effort to allow python programs full access to Java class libraries.jtypes.javabridge is a lightweight Python package, based on the ctypes or cffi library.It is an almost fully compliant implementation of Lee Kamentsky’s and Vebjorn Ljosa’s Javabridge package by reimplementing whole its functionality in a clean Python instead of Cython and C.
关于javabridge:
The javabridge Python package makes it easy to start a Java virtual machine (JVM) from Python and interact with it. Python code can interact with the JVM using a low-level API or a more convenient high-level API.
要求
- java运行时(jre)或java开发工具包(jdk)和numpy(不是必需的,但非常重要 推荐)。
安装
先决条件:
- python 2.7或更高版本或3.4或更高版本
- http://www.python.org/
- 2.7和3.6是主要的测试环境。
- pip和setuptools
要安装,请运行:
python -m pip install --upgrade jtypes.javabridge
为了确保一切正常运行,您可以使用:
python -m jt.javabridge.tests
开发
从源安装:
克隆sources并运行:
python -m pip install ./jtypes.javabridge
或开发模式:
python -m pip install --editable ./jtypes.javabridge
先决条件:
开发严格基于tox。要安装它,请运行:
python -m pip install tox
许可证
Copyright (c) 2014-2018, Adam KarpierzLicensed under the BSD licensePlease refer to the accompanying LICENSE file.
更改日志
1.0.18B3(2018-11-08)
- 更新所需的setuptools版本。
- 小的设置和测试改进。
1.0.18b1(2018-10-01)
- 与JavaBridge主分支同步(v.1.0.18+)。
1.0.17b2(2018-05-29)
- 与JavaBridge主分支同步。
- Java 9支持中的错误修复和改进。
- Mozilla Rhino的更新。
- 更新所需的setuptools版本。
1.0.14b4(2018-02-26)
- 改进和简化安装和包装。
1.0.14b3(2018-01-29)
- 开发转移到github。
- 一般改进和更新。
1.0.14b2(2017-01-01)
- 第二个测试版。
- 版本号同步。使用原始的javabridge。
0.1.1a1(2014-10-05)
- 初始版本。