https://github.com/openjdk/detroit-python
https://openjdk.org/projects/detroit
https://github.com/openjdk/detroit-python
Last synced: about 1 month ago
JSON representation
https://openjdk.org/projects/detroit
- Host: GitHub
- URL: https://github.com/openjdk/detroit-python
- Owner: openjdk
- License: gpl-2.0
- Created: 2026-03-12T17:33:50.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2026-05-25T12:38:10.000Z (about 1 month ago)
- Last Synced: 2026-05-25T14:26:00.068Z (about 1 month ago)
- Language: Java
- Homepage:
- Size: 1.14 MB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project Detroit Python - a javax.script engine for Python
This branch requires Python 3.14.
Install pyenv and
pyenv-virtualenv
for your OS. Using pyenv and pyenv-virtualenv, you can
install specific Python versions and create virtual environments within.
After installing pyenv and configuring your shell's environment variables
(like ~/.zshrc or ~/.bashrc), you must restart your terminal session for
the changes to take effect.
You can create install Python 3.14, create a virtual environment and
activate it using the following commands:
```sh
pyenv install 3.14
pyenv virtualenv 3.14 mypyenv-3.14
pyenv activate mypyenv-3.14
```
* You can skip the next two steps if you do not want to
re-generate jextract binding classes from Python C API.
* Download & extract jextract early access binary from
* Put jextract in PATH
* Install JDK 25 and define JAVA_HOME to be JDK 25 home
* From the current directory
```sh
mvn clean verify surefire-report:report javadoc:javadoc
```
command builds and tests the project
* From the current directory:
```sh
sh jpython.sh
```
runs a simple REPL. or
```sh
sh jpython.sh samples/squares.py
```
runs a sample script file
* To run a java sample that uses Python script engine:
```sh
sh run.sh samples/Hello.java
```