Skip to main content

Python bridge for the Java Native Interface.

Project description

jni

Python bridge for the Java Native Interface.

Overview

jni is a complete bridge between Python and Java JNI.
It is an effort to allow python programs full access to Java JNI API.

PyPI record.

Documentation.

jni is a lightweight Python package, based on the ctypes, or cffi library, or Cython wrapper (currently under development).
It is done by implementing whole JNI API functionality in a clean Python instead of C/C++.
jni also contains a JNI wrapper in pure C based on Python C-API (currently under development) - mainly for performance reasons.

What is jni:

jni is an effort to allow python programs full access to Java JNI API.
This is achieved not through re-implementing Python, as Jython has done, but rather through interfacing at the native level in both virtual machines.
Known Bugs/Limitations :
  • Because of lack of JVM support, you cannot shutdown the JVM and then restart it.

Installation

Prerequisites:

To install run:

python -m pip install --upgrade jni

Development

Prerequisites:

  • Development is strictly based on tox. To install it run:

    python -m pip install --upgrade tox

Visit Development page.

Installation from sources:

clone the sources:

git clone https://github.com/karpierz/jni.git jni

and run:

python -m pip install ./jni

or on development mode:

python -m pip install --editable ./jni

License

Copyright (c) 2004-2024 Adam Karpierz
Licensed under CC BY-NC-ND 4.0
Licensed under proprietary License
Please refer to the accompanying LICENSE file.

Authors

Changelog

1.0.0b22 (2024-01-26)

  • Tox configuration has been moved to pyproject.toml

  • Setup update (now based on tox >= 4.0).

  • Add support for Python 3.10, 3.11 and 3.12

  • Drop support for Python 3.7

  • Add support for PyPy 3.9 and 3.10

  • Copyright year update.

1.0.0b20 (2022-01-29)

  • Drop support for Python 3.6

  • Setup update.

1.0.0b18 (2021-10-13)

  • dll_path argument of load() can also be type os.PathLike.

  • Copyright year update.

  • Setup update.

1.0.0b17 (2020-11-10)

  • Add support for Python 3.9

  • General update, improvements and cleanup.

  • Setup update and improvements.

  • Fixed docs setup.

1.0.0b7 (2020-03-08)

  • Drop support for Python2

  • Update of license info.

  • Setup update.

1.0.0b4 (2019-07-10)

  • Last release for Python2

1.0.0b3 (2018-05-22)

  • Update of the required setuptools version.

1.0.0b2 (2018-02-26)

  • Improvement and simplification of setup and packaging.

1.0.0b1 (2017-11-18)

  • First ‘official’ version.

0.1.1 (2005-10-05)

  • Initial 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 Distribution

jni-1.0.0b22.zip (265.9 kB view details)

Uploaded Source

Built Distributions

jni-1.0.0b22-pp310-pypy310_pp73-win_amd64.whl (121.7 kB view details)

Uploaded PyPy Windows x86-64

jni-1.0.0b22-pp39-pypy39_pp73-win_amd64.whl (121.8 kB view details)

Uploaded PyPy Windows x86-64

jni-1.0.0b22-cp312-cp312-win_amd64.whl (124.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

jni-1.0.0b22-cp311-cp311-win_amd64.whl (125.5 kB view details)

Uploaded CPython 3.11 Windows x86-64

jni-1.0.0b22-cp38-cp38-win_amd64.whl (126.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

File details

Details for the file jni-1.0.0b22.zip.

File metadata

  • Download URL: jni-1.0.0b22.zip
  • Upload date:
  • Size: 265.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jni-1.0.0b22.zip
Algorithm Hash digest
SHA256 9072a5894b5f7885a58938a7bdbee038bd57dfa4d3d4fb9fa324d050d0b07580
MD5 b524cb309647fd8294a2714ab0e75458
BLAKE2b-256 4d084dd1e5bef467abddea09432f16ffe01d6763f142f8d433a531aab5b98e17

See more details on using hashes here.

File details

Details for the file jni-1.0.0b22-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for jni-1.0.0b22-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 f70ce01c9e61096d518f3014bd8c53014309dec1041359edd9136f05bb5b2a83
MD5 a02b5767e0fbad873d07389133b02c85
BLAKE2b-256 17fe37c3fbed271fc03149fb2141ccf67712fa8095b11bb34a32e65c555169d3

See more details on using hashes here.

File details

Details for the file jni-1.0.0b22-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for jni-1.0.0b22-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7ba9e10132ddc6f2eea745b72269506c57e0f9191e24677650e5a33936278fe8
MD5 e722339193cff4c94132a74b57cea899
BLAKE2b-256 4b2dfe0ff511afcc7e2a12450f95f1b219a7998333d529acced04886a83e47a7

See more details on using hashes here.

File details

Details for the file jni-1.0.0b22-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: jni-1.0.0b22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 124.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jni-1.0.0b22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c69b6b5e7e8bb955466a476c31c9c3c3a64e46d4457af3f952cd62a96fcadb22
MD5 8238f9bb9b8fb2753d202626e99eb579
BLAKE2b-256 bcb99ae85f72aab22c4ef749a956d7441ba84edff79d5683c3949b87c1108884

See more details on using hashes here.

File details

Details for the file jni-1.0.0b22-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: jni-1.0.0b22-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 125.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jni-1.0.0b22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2ee1689fa21c97cb6e05786892a4352793a65e23a53a24f1c4d68e252fef8dd1
MD5 82293c29ca359072af1519f8f1f5c4f8
BLAKE2b-256 8f1ff6bfafc8c5ccfb88ee4a4c1282d27bb9d6359885abde102b0b8bbdcf33db

See more details on using hashes here.

File details

Details for the file jni-1.0.0b22-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: jni-1.0.0b22-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 126.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for jni-1.0.0b22-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2afd8944d8a1e2f864c520b90bb32f7b8494ea59987f0d7955831ee898e8e14c
MD5 6d51a052b09b75285dfd182fad606553
BLAKE2b-256 6359c2e679a54c1acc696472be1e86ed88765dc2d661ad30d42e7e0a651fa18d

See more details on using hashes here.

Supported by

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