Skip to main content

A JDK shipped in a Python package

Project description

jdk4py

A JDK shipped in a Python package.

PyPI version

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
(25, 0, 2)
>>> 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jdk4py-25.0.2.1-py3-none-win_amd64.whl (31.0 MB view details)

Uploaded Python 3Windows x86-64

jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl (35.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl (34.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl (30.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl (31.5 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file jdk4py-25.0.2.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: jdk4py-25.0.2.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 31.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdk4py-25.0.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5f0ad2e8f7ad3b40eef8af75062d830afd3feccca62fc03db611b2e9a5fa9824
MD5 6a8c468b7b0b8ae5a1a46a98bebf6282
BLAKE2b-256 74424517e3d5b75f52d330acb5816c387d28d58f1689e3ab91c48639fcde3483

See more details on using hashes here.

File details

Details for the file jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 35.4 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 383d71d8639d072752d2eaafc84944e0d8de7f1c45d30c28f6dfef8a4a65543c
MD5 9fc67011e3624fc0df6d8ef5c3db0eee
BLAKE2b-256 025ab572f441714a420d65805cbf8806d9b78a8ab70060ed251310661c0b934c

See more details on using hashes here.

File details

Details for the file jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 34.5 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 b7246170d605dd7b65340994fedea2615737e63955f0b95389202e0ab4a166ac
MD5 0654206f665240d94281d0fcb2ed984c
BLAKE2b-256 52fee382f79e1fc1f7dfa04c4a7df765203f780590221c26ddff79a1e56aec76

See more details on using hashes here.

File details

Details for the file jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 30.1 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eda21f14d7d56c7e1ee0f2beb55bfc19f311a8653bdb00217f0cc013c2f2c587
MD5 6fd47291a20f7ca096e2a6f36f400646
BLAKE2b-256 95b8398b8cff51b1109cdaa424dc4e62ef60acb89e5eb8041fb16a40bc005b49

See more details on using hashes here.

File details

Details for the file jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 31.5 MB
  • Tags: Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5df67e2f6a5277f39fb97584eb64ee8d7265770fd42425ec2f11fc4e72c82c6c
MD5 9f681428b87ef76fbb6d208057ae714b
BLAKE2b-256 97c33883815de1ecb3dca14f6ada6b38c6e9bb7fc7c3585b2b1924970d4d33fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page