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-2022 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.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.0b18.zip (217.1 kB view details)

Uploaded Source

Built Distribution

jni-1.0.0b18-cp37-cp37m-win_amd64.whl (121.6 kB view details)

Uploaded CPython 3.7m Windows x86-64

File details

Details for the file jni-1.0.0b18.zip.

File metadata

  • Download URL: jni-1.0.0b18.zip
  • Upload date:
  • Size: 217.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for jni-1.0.0b18.zip
Algorithm Hash digest
SHA256 460603fa134cbcfda389f8013abf4428a8193d90878149b307b495b22f3bf3f2
MD5 d3db552f9045ae63c4b6773479e200a7
BLAKE2b-256 0108da9804615431874e64b8bc3c238e6b9bdd86fe873914a1bedae546317639

See more details on using hashes here.

File details

Details for the file jni-1.0.0b18-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: jni-1.0.0b18-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 121.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

File hashes

Hashes for jni-1.0.0b18-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ec4e3489697513e5dffec97759000662cf6aa5b2c7e3fb2cb9614a2e0891eed3
MD5 a074ce8e5ce566aab529e5e224b5be4b
BLAKE2b-256 d6eabb17d42bcbd74f5be6dd5dc3d061fdd70e1aa433a3e49c08ff0fa9f3a079

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