Java嵌入式Python(CyType / CFFI)JPEP

jtypes.jep的Python项目详细描述


当前仅作为占位符(因为基本包jtypes.jvm仍在开发中)

j类型.jep

Java嵌入式Python。

概述

jtypes.jep embeds CPython in Java.

PyPI record.

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.

关于杰普:

original website

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 -m pip install --upgrade jtypes.jep

为了确保一切正常运行,您可以使用:

python -m jt.jep.tests

开发

访问development page

从源安装:

克隆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 Karpierz

Licensed under the zlib/libpng License
Please 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)

  • 初始版本。

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

推荐PyPI第三方库


热门话题
java无法使用JAXB配置Moxy   java如何让我的简单Swing telnet客户端正确显示字符?   java中从可运行线程调用主线程的多线程处理   java数据源。EBJ3会话bean中的getConnection()   使用java和正则表达式从xml文件提取值时出现问题   java定制Jersy胡须Mvc   在Java中,“限制并发”是什么意思?   java有没有更干净的方法可以在这里使用Optional,而不在三个地方返回“NA”?   java Tomcat启动,然后崩溃,除非我打电话   java理解客户机和服务器   java时间戳将在视图对象>实体转换期间丢失   如何在java中返回布尔值(基元)?   java使用spring mvc设置日志记录,希望仅对我的代码进行跟踪/调试   用Jackson解析嵌套对象