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
(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


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

Uploaded Python 3Windows x86-64

jdk4py-21.0.8.1-py3-none-manylinux_2_17_x86_64.whl (33.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

jdk4py-21.0.8.1-py3-none-manylinux_2_17_aarch64.whl (33.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

jdk4py-21.0.8.1-py3-none-macosx_11_0_arm64.whl (29.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-21.0.8.1-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-21.0.8.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.8.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ded1322b0876ff5e1ff446e355c3d32bad51a12bf2c788dbfe5b31500a8d859a
MD5 beddbb5d5f757ff6ae9a04f03405bcd4
BLAKE2b-256 fc3308d07663cd19c4b1b66a3be36698a02be8ea5a6035acd1036b512ac9d44d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1e254cfcb74389f75d9bf2529ed97ab85c61c8b6550ddd32998791dd4859063a
MD5 abf1196d1297bfb8a59cef4a26be53bd
BLAKE2b-256 faf2a4fc7751d617760ec692bd32df4cfb4751039522d0c0a6c6c18f66e76fcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2e3c51e4845f0d8f24e44b6593db14aa8cbb321534d724a92a328908bcf4daf1
MD5 b369b14e5bcdaa1cfdac741da01c3545
BLAKE2b-256 e24a9bc5bf744b373bd16b6f054462336f6af868096fcc39fee82ec6f241dc60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9e99355700f67531265d32f043dfed491a6d25cd221d12ee951a181c3402abe
MD5 ba5370ac86aa9214f98b02914f613a79
BLAKE2b-256 90eae737c3d5e32023e82113d0035f56bffdccc1076f684e6679132e002fce28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 57ca227277e4e970e85bbe0455374fbd2c00bc1ac774ff4ec151ec3958c0f315
MD5 34bf38ea3ef3aa97829e5b043277b732
BLAKE2b-256 455a3d9c614800d85ccca5abfcdce976c634edc496b8d5225af9fa5278d26715

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