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, 4)
>>> 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

jdk4py-21.0.4.2-py3-none-win_amd64.whl (29.8 MB view details)

Uploaded Python 3Windows x86-64

jdk4py-21.0.4.2-py3-none-manylinux_2_17_x86_64.whl (33.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

jdk4py-21.0.4.2-py3-none-manylinux_2_17_aarch64.whl (33.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

jdk4py-21.0.4.2-py3-none-macosx_11_0_arm64.whl (29.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-21.0.4.2-py3-none-macosx_10_9_x86_64.whl (31.1 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.4.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 acbd3cc81af3a1de9489caa573f1cf87a8965923b0c5fc0771bf6f102e81bd56
MD5 49e05ea666a8a03f86eeed6dcf17a511
BLAKE2b-256 754cddb5d3ee1f42f8b796518c2c3c8aa9da21edb6917385d664fedd097443a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.4.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b3b2fbfded8b023977aa8b4909c0f9897668a315060e7713610bce0757447707
MD5 0c2291e26eca4b1c490983c244ef0deb
BLAKE2b-256 33b271e29c9943ddd59d57fcba9bae791c39ac3d8d6d88bf0543bd4c12e28323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.4.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 12cdccd593e586751aa2aabc82805b72da86a04f00acdadf8af8cd1cdfea86cc
MD5 a70827b6efe1f2b9a8e25699d9711ed8
BLAKE2b-256 2c32cba369f5c00495373b4de1ead5487b178b8cadee0c66049e8e13da53c1ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.4.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65f21dd70360341df4968e2c3a1978dd4b5ec725cd5c0f338f4b418f2e858312
MD5 a9c8cd7b11bd18f694cd1017409c1afc
BLAKE2b-256 0ba3f355d07c9360900350a99f0a41f274a9d15c36a017227389a87c1e66f4b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.4.2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b0577795e70f69e5df92eceb05c0b584bd7512d6e479fad63d49c22362f31e9d
MD5 1bf018b36aa04ab2079203b9d4b79a65
BLAKE2b-256 161b4067dca3b254dc7254292e5e73ebe147c61fd257583b50c575aaae8518b7

See more details on using hashes here.

Supported by

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