A JDK shipped in a Python package
Project description
jdk4py
A JDK shipped in a Python package.
Install
pip install jdk4py
or as a Conda package:
conda config --add channels https://conda.atoti.io
conda install jdk4py
Usage
>>> from jdk4py import JAVA, JAVA_HOME, JAVA_VERSION
>>> JAVA_HOME
PosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime')
>>> JAVA
PosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime/bin/java')
>>> JAVA_VERSION
(21, 0, 8)
>>> from subprocess import run
>>> some_java_options = ["-Xmx16G", "-Xms2G"]
>>> run(
... [JAVA, "-jar", "HelloWorld.jar", *some_java_options],
... capture_output=True,
... check=True,
... text=True,
... ).stdout.strip()
"Hello, World!"
Versioning
jdk4py's version contains 4 numbers:
- The first 3 numbers correspond to the JDK version.
- The fourth number is the library API version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jdk4py-21.0.8.0-py3-none-win_amd64.whl.
File metadata
- Download URL: jdk4py-21.0.8.0-py3-none-win_amd64.whl
- Upload date:
- Size: 30.2 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d150b1812e71c3ad9ae79daf6d6a62edd78dcbaac94dad85d8d0b01654611bae
|
|
| MD5 |
8afe445b9133807e1e9cac31efa5931b
|
|
| BLAKE2b-256 |
97a2aac69b73889e99ac89b25a96d3dec9aeb765c0b1b8904d82339cf9d2b7c3
|
File details
Details for the file jdk4py-21.0.8.0-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: jdk4py-21.0.8.0-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 33.6 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28035f9f2dd99a2ffcecfc61f55849b32b906945217d1900fa8f100d264802c7
|
|
| MD5 |
4924795b34da59c36a02b5385c33bc55
|
|
| BLAKE2b-256 |
7ab86225b92a136482942e9c0e76964fb6362226a220dcd0745ea272b4b1b05c
|
File details
Details for the file jdk4py-21.0.8.0-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: jdk4py-21.0.8.0-py3-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 33.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f92806d87536a02f26c1e6a0fe66b7660f5e736b36b2eef473ea1db61938f79
|
|
| MD5 |
c2aca74f9ab1f60bb291fa4686bd780a
|
|
| BLAKE2b-256 |
d01ef30581ddb82bc4aba51ab1bf16d12caea25527ebb1aefe95006feb1b5d02
|
File details
Details for the file jdk4py-21.0.8.0-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: jdk4py-21.0.8.0-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 29.5 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e7d3dfe0e67e895911b888dd21005502907d5a1335b0fb8b58f013186744ea9
|
|
| MD5 |
6b56e66a98d312f4f4e085d1596adcee
|
|
| BLAKE2b-256 |
7165520a1eed5793fb548c1fabd4537b30a6485a1cbf63b50c30aab1e2781fcd
|
File details
Details for the file jdk4py-21.0.8.0-py3-none-macosx_10_9_x86_64.whl.
File metadata
- Download URL: jdk4py-21.0.8.0-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 30.7 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44306d0cc69ec19809b8d8978884510a17cadd37bb5d073702b28ec724877245
|
|
| MD5 |
a4362722e02ea3f6df25ca8b7aab6c03
|
|
| BLAKE2b-256 |
e29e1923f4d1c831af7319dd9357c3b6d3edf62c57f03770f344d54c7daa054f
|