Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/jepPublic

Embed Python in Java

License

NotificationsYou must be signed in to change notification settings

ninia/jep

Repository files navigation

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 thanalternatives.
  • Python is mature, well supported, and well documented.
  • Access to high quality Python modules, both native CPythonextensions and Python-based.
  • Compilers and assorted Python tools are as mature as the language.
  • Python is an interpreted language, enabling scripting of establishedJava code without requiring recompilation.
  • Both Java and Python are cross platform, enabling deployment todifferent operating systems.

Installation

Simply runpip install jep or download the source and runpip install .. Building and installing require the JDK and Python,to be installed beforehand. Pip will need to be able to install setuptoolsand numpy to build jep.

Dependencies

  • Python >= 3.10
  • 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

We welcome comments, contributions, bug reports, wiki documentation, etc.

If you need help, please first search for existing solutions online, in thethe issues, and on the wiki. If you still need help, please open a GitHub issueand we will try and help you. Please remember to close the issue once it hasbeen resolved.

Jep Team

About

Embed Python in Java

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors32


[8]ページ先頭

©2009-2025 Movatter.jp