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.0-py3-none-win_amd64.whl (30.2 MB view details)

Uploaded Python 3Windows x86-64

jdk4py-25.0.2.0-py3-none-manylinux_2_17_x86_64.whl (34.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

jdk4py-25.0.2.0-py3-none-manylinux_2_17_aarch64.whl (33.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

jdk4py-25.0.2.0-py3-none-macosx_11_0_arm64.whl (29.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-25.0.2.0-py3-none-macosx_10_9_x86_64.whl (30.8 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: jdk4py-25.0.2.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.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.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 475db0735a6246534bb8c39598a5a7073eddf10697425739f48dd7384b50b83c
MD5 e3b79c44b961f5ab7358504e263cb176
BLAKE2b-256 18fc6352b533a8cc3b7756670dd36b678dd2aba5ad3ef26a1b9216f5dcec4e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-25.0.2.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 34.7 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.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3f508ac5dc77b78050f8d6109165bd85aed73a87da0fa8c63b62d1e3ac3d5c53
MD5 e8c010e46dd46ff83179324c8db8b0ac
BLAKE2b-256 c500d99f4f23112e85cd4a0653fe64e6f5ae06c818d2e3341ef1103d9a36423c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-25.0.2.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 33.8 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.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1eda49a973aa56a7d41d022842326018c0f4a84f76364832db8133471154a2ca
MD5 a07262684a5c46dfe6f2c6444ea87d1c
BLAKE2b-256 987706628c66e04ad661b4135abf070e9893228ffdfbe633fa7d6d5287c86adf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-25.0.2.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 29.4 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.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40e004db642b7826662f7449752b52dfd7872b4f03aabf0c0c6cf4e5fa52fee4
MD5 b9141f4f1b6355eff45dca7411cdfc7a
BLAKE2b-256 f53aef58bd26373858f8fedeb0856e60407e31befb8d6c061a7390be8661793e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-25.0.2.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 30.8 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.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6a3cee3bbe70bfa91b473bca08276ce15935eead339abdc1704d169b6ca0bd70
MD5 d548b45cd27daf660f3dfbb45a698203
BLAKE2b-256 c4ae787af5c34aa5d5a2e16cf75a11743a75562f128a5b2e9b4430b727e739d3

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