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

Uploaded Python 3Windows x86-64

jdk4py-21.0.8.0-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.0-py3-none-manylinux_2_17_aarch64.whl (33.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

jdk4py-21.0.8.0-py3-none-macosx_11_0_arm64.whl (29.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-21.0.8.0-py3-none-macosx_10_9_x86_64.whl (30.7 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d150b1812e71c3ad9ae79daf6d6a62edd78dcbaac94dad85d8d0b01654611bae
MD5 8afe445b9133807e1e9cac31efa5931b
BLAKE2b-256 97a2aac69b73889e99ac89b25a96d3dec9aeb765c0b1b8904d82339cf9d2b7c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 28035f9f2dd99a2ffcecfc61f55849b32b906945217d1900fa8f100d264802c7
MD5 4924795b34da59c36a02b5385c33bc55
BLAKE2b-256 7ab86225b92a136482942e9c0e76964fb6362226a220dcd0745ea272b4b1b05c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 7f92806d87536a02f26c1e6a0fe66b7660f5e736b36b2eef473ea1db61938f79
MD5 c2aca74f9ab1f60bb291fa4686bd780a
BLAKE2b-256 d01ef30581ddb82bc4aba51ab1bf16d12caea25527ebb1aefe95006feb1b5d02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e7d3dfe0e67e895911b888dd21005502907d5a1335b0fb8b58f013186744ea9
MD5 6b56e66a98d312f4f4e085d1596adcee
BLAKE2b-256 7165520a1eed5793fb548c1fabd4537b30a6485a1cbf63b50c30aab1e2781fcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jdk4py-21.0.8.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 44306d0cc69ec19809b8d8978884510a17cadd37bb5d073702b28ec724877245
MD5 a4362722e02ea3f6df25ca8b7aab6c03
BLAKE2b-256 e29e1923f4d1c831af7319dd9357c3b6d3edf62c57f03770f344d54c7daa054f

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