Java嵌入式Python(CyType / CFFI)JPEP
jtypes.jep的Python项目详细描述
当前仅作为占位符(因为基本包jtypes.jvm仍在开发中)
j类型.jep
Java嵌入式Python。
概述
jtypes.jep embeds CPython in Java.jtypes.jep is a lightweight Python package, based on the ctypes or cffi library.It is an almost fully compliant implementation of Mike Johnson’s Jep package by reimplementing its functionality in a clean Python instead of C.
关于杰普:
Jep embeds CPython in Java through JNI and is safe to use in a heavily threaded environment.
Some benefits of embedding CPython in a JVM:
- Using the native Python interpreter may be much faster than alternatives.
- Python is mature, well supported, and well documented.
- Access to high quality Python modules, both native CPython extensions and Python-based.
- Compilers and assorted Python tools are as mature as the language.
- Python is an interpreted language, enabling scripting of established Java code without requiring recompilation.
- Both Java and Python are cross platform, enabling deployment to different operating systems.
Notable features
- Interactive Jep console much like Python’s interactive console
- Supports multiple, simultaneous, mostly sandboxed sub-interpreters
- Numpy support for Java primitive arrays
要求
- Java=1.7—Sun/Oracle JRE/JDK或OpenJDK。
- numpy>;=1.7(可选)
安装
先决条件:
- python 2.7或更高版本或3.4或更高版本
- http://www.python.org/
- 2.7和3.6是主要的测试环境。
- pip和setuptools
要安装,请运行:
python -m pip install --upgrade jtypes.jep
为了确保一切正常运行,您可以使用:
python -m jt.jep.tests
开发
从源安装:
克隆sources并运行:
python -m pip install ./jtypes.jep
或开发模式:
python -m pip install --editable ./jtypes.jep
先决条件:
开发严格基于tox。要安装它,请运行:
python -m pip install tox
许可证
Copyright (c) 2014-2018 Adam KarpierzLicensed under the zlib/libpng LicensePlease refer to the accompanying LICENSE file.
更改日志
3.8.2A2(2018-11-08)
- 与Pyjnius主分支同步。
- 更新所需的setuptools版本。
- 小的设置和测试改进。
3.7.1b4(2018-05-23)
- 更新所需的setuptools版本。
- 文件更新。
3.7.1b3(2018-02-26)
- 改进和简化安装和包装。
3.7.1b2(2018-01-29)
- 开发转移到github。
- 一般改进和更新。
3.7.1b1(2017-01-01)
- 第一个测试版。
1.1.0b1(2017-01-01)
- 第一个测试版。
1.1.0b1(2017-01-01)
- 第一个测试版。
0.1.1(2005-10-05)
- 初始版本。