双向Python Java桥(cType /CFFI基JPY)
jtypes.jp的Python项目详细描述
当前仅作为占位符(因为基本包jtypes.jvm仍在开发中)
jtypes.jpy
双向python-java桥。
概述
jtypes.jpy is a bi-directional bridge between Python and Java which can be use to call Java from Python and Python from Java.
jtypes.jpy is a lightweight Python package, based on the ctypes or cffi library.It is an almost fully compliant implementation of Norman Fomferra’s Jpy package by reimplementing its functionality in a clean Python instead of C.
关于日元:
jpy is a bi-directional Java-Python bridge allowing you to call Java from Python and Python from Java.
jpy is a bi-directional Python-Java bridge which you can use to embed Java code in Python programs or the other way round. It has been designed particularly with regard to maximum data transfer speed between the two languages. It comes with a number of outstanding features:
- Fully translates Java class hierarchies to Python
- Transparently handles Java method overloading
- Support of Java multi-threading
- Fast and memory-efficient support of primitive Java array parameters via Python buffers (e.g. numpy arrays)
- Support of Java methods that modify primitive Java array parameters (mutable parameters)
- Java arrays translate into Python sequence objects
- Java API for accessing Python objects (^{tt1}$)
安装
先决条件:
- python 2.7或更高版本或3.4或更高版本
- http://www.python.org/
- 2.7和3.6是主要的测试环境。
- pip和setuptools
要安装,请运行:
python -m pip install --upgrade jtypes.jpy
为了确保一切正常运行,您可以使用:
python -m jt.jpy.tests
开发
从源安装:
克隆sources并运行:
python -m pip install ./jtypes.jpy
或开发模式:
python -m pip install --editable ./jtypes.jpy
先决条件:
开发严格基于tox。要安装它,请运行:
python -m pip install tox
许可证
Copyright 2014-2018 Adam KarpierzLicensed under the Apache License, Version 2.0Please refer to the accompanying LICENSE file.
更改日志
0.10.0a3(2018-11-08)
- 与JPY主分支同步。
- 更新所需的setuptools版本。
- 小的设置和测试改进。
0.9.0a3(2018-05-23)
- 与JPY主分支同步。
- 更新所需的setuptools版本。
0.9.0a2(2018-02-26)
- 改进和简化安装和包装。
0.9.0a1(2018-02-12)
- 与原来的0.9.0日元同步。
0.9.0a0(2018-01-29)
- 开发转移到github。
- 版本号同步。用原来的日元。
0.0.1(2005-10-05)
- 初始版本。