的Python到Java桥接器(基于)
jtypes.jcc的Python项目详细描述
当前仅作为占位符(因为基本包jtypes.jvm仍在开发中)
jTypes.jcc
pylucene的python到java桥。
概述
jtypes.jcc provides a bridge necessary to call into Java classes from Python via Java’s Native Invocation Interface (JNI).
jtypes.jcc is a lightweight Python package, based on the ctypes or cffi library.It is an almost fully compliant implementation of PyLucene’s JCC package by reimplementing its functionality in a clean Python instead of C++.
关于JCC:
What is JCC ?
JCC is a C++ code generator that produces a C++ object interface wrapping a Java library via Java’s Native Interface (JNI). JCC also generates C++ wrappers that conform to Python’s C type system making the instances of Java classes directly available to a Python interpreter. …
JCC is a Python extension written in Python and C++. It requires a Java Runtime Environment (JRE) to operate as it uses Java’s reflection APIs to do its work.
要求
- 各种Java运行时环境,如Oracle Java 1.7+、Apple Java 1.6+ 在MacOSX以及开源JavaOpenJDK1.7+版本上。
安装
先决条件:
- python 2.7或更高版本或3.4或更高版本
- http://www.python.org/
- 2.7和3.6是主要的测试环境。
- pip和setuptools
要安装,请运行:
python -m pip install --upgrade jtypes.jcc
为了确保一切正常运行,您可以使用:
python -m jt.jcc.tests
开发
从源安装:
克隆sources并运行:
python -m pip install ./jtypes.jcc
或开发模式:
python -m pip install --editable ./jtypes.jcc
先决条件:
开发严格基于tox。要安装它,请运行:
python -m pip install tox
许可证
Copyright 2015-2018 Adam KarpierzLicensed under the Apache License, Version 2.0Please refer to the accompanying LICENSE file.
更改日志
2.22.0A8(2018-09-03)
- 与JCC主分支同步(SVN版本:1839491)。
2.22.0A6(2018-05-23)
- 更新所需的setuptools版本。
2.22.0A5(2018-02-26)
- 改进和简化安装和包装。
2.22.0A4(2018-01-29)
- 开发转移到github。
- 一般改进和更新。
2.22.0A3(2017-01-10)
- 初始版本。
2.21.0a0(2015-10-14)
- 初始版本。