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

Uploaded Python 3Windows x86-64

jdk4py-21.0.8.2-py3-none-manylinux_2_17_x86_64.whl (33.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

jdk4py-21.0.8.2-py3-none-manylinux_2_17_aarch64.whl (33.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

jdk4py-21.0.8.2-py3-none-macosx_11_0_arm64.whl (29.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-21.0.8.2-py3-none-macosx_10_9_x86_64.whl (30.9 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: jdk4py-21.0.8.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 30.3 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-21.0.8.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1c8e37d26315dfbb603503153d3dcdd90021fda71d64ab0b6309f06f83c0d503
MD5 1f5ef149822d80cd995e893264ad51a7
BLAKE2b-256 11e387b83011678930770bf59b3f3fa5bd6c85f5e48941f1ef9e31cbfb62bee3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-21.0.8.2-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 33.8 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-21.0.8.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 85addfcb57c7051dad6145b9f816fc519337e9a0c705ef01edc9dc7818ee0356
MD5 abea76501e5243f2b4841dff513cd320
BLAKE2b-256 a261f3b5936908ff6de66c61aef69bf1074cb468fb883f5a0bb9e15e67a6b484

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-21.0.8.2-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 33.2 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-21.0.8.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2519dce230b3ed13a93a3efed15c6b8b163aeacd77859ddf59eef3faa69c635d
MD5 88d10db7006375e09a82d58816de5422
BLAKE2b-256 9d0c24a7d8e4c96c3843b8163ba7a9be939b48fc181fb3263bd4fd9289ed8f41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-21.0.8.2-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 29.7 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-21.0.8.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0667b81b3ddc60157f773e0d05d00f4d46530f82bdc59e295b322b8d33f69417
MD5 1613f1c3ab21790e96294da7e41c386d
BLAKE2b-256 e619449f69b8706c2cb5fa46fdc3e75650983e44e4e025d6ade78580b2c8572d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdk4py-21.0.8.2-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 30.9 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-21.0.8.2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7b2b397f2999e5a71728691477857a5a41215b3c95f6e8b15a4d53bc76203dff
MD5 caac6e6b21b92bb74f94ed7f35c595dd
BLAKE2b-256 9b91faab5f5b2bdcaf74c20304c5c3a6a9e304a6c609a1d755e927c07a87f883

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