ninia/jep
Fork: 152 Star: 1343 (更新于 2024-12-16 06:39:13)
license: NOASSERTION
Language: C .
Embed Python in Java
最后发布版本: v4.2.0 ( 2023-12-16 23:19:33)
.. image:: https://img.shields.io/pypi/pyversions/Jep.svg :target: https://pypi.python.org/pypi/jep
.. image:: https://img.shields.io/pypi/l/Jep.svg :target: https://pypi.python.org/pypi/jep
.. image:: https://img.shields.io/pypi/v/Jep.svg :target: https://pypi.python.org/pypi/jep
.. image:: https://img.shields.io/badge/docs-wiki-orange.svg :target: https://github.com/ninia/jep/wiki
.. image:: https://img.shields.io/badge/docs-javadoc-orange.svg :target: https://ninia.github.io/jep/javadoc
Jep - Java Embedded Python
Jep embeds CPython in Java through JNI.
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.
Installation
Simply run pip install --no-cache-dir --no-build-isolation jep
or download
the source and run pip install .
. Building and installing require the JDK,
Python, setuptools, and optionally numpy to be installed beforehand. The
--no-cache-dir
and --no-build-isolation
options are not strictly
required, however those settings enable Jep to make customizations for your
environment such as enabling numpy specific behavior if numpy is installed.
Dependencies
- Python >= 3.6
- Java >= 1.8
- NumPy >= 1.7 (optional)
Notable features
- Interactive Jep console much like Python's interactive console
- Supports multiple, simultaneous, mostly sandboxed sub-interpreters or shared interpreters
- Numpy support for Java primitive arrays
Help
-
Documentation <https://github.com/ninia/jep/wiki>
_ -
JavaDoc <https://ninia.github.io/jep/javadoc>
_ -
Mailing List (deprecated) <https://groups.google.com/d/forum/jep-project>
_ -
Known Issues and Help <https://github.com/ninia/jep/issues>
_ -
Contribution Guidelines <https://github.com/ninia/jep/blob/master/.github/CONTRIBUTING.md>
_ -
Project Page <https://github.com/ninia/jep>
_
We welcome comments, contributions, bug reports, wiki documentation, etc.
If you need help, please first search for existing solutions online, in the the issues, and on the wiki. If you still need help, please open a GitHub issue and we will try and help you. Please remember to close the issue once it has been resolved.
Jep Team
最近版本更新:(数据更新于 2024-09-10 18:45:09)
2023-12-16 23:19:33 v4.2.0
2022-12-28 03:55:26 v4.1.1
2022-10-26 10:43:15 v4.1.0
2022-03-21 02:06:39 v4.0.3
2022-02-14 00:25:51 v4.0.2
2021-12-31 06:35:14 v4.0.1
2021-09-11 22:03:16 v4.0.0
2020-10-04 23:27:00 v3.9.1
2019-08-30 07:15:57 v3.9.0
2018-08-11 01:30:41 v3.8.2
主题(topics):
c, cpython, java, jni, python
ninia/jep同语言 C最近更新仓库
2025-01-18 18:58:20 EdgeTX/edgetx
2025-01-16 06:58:06 OnionUI/Onion
2025-01-15 23:17:50 OpenVPN/openvpn
2025-01-12 17:44:12 78/xiaozhi-esp32
2025-01-09 05:55:40 openwrt/openwrt
2025-01-06 22:19:57 redis/redis