$npx skillfedfor your agent

pyjnius

A Python library for accessing access Java classes as using the Java Native Interface (JNI).

With conditionsPyPI Application FrameworksReleased Sep 2025295.3K downloads / mopermissive licensePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — pyjnius-1.7.0-cp310-cp310-macosx_10_9_universal2.whl · pyjnius-1.7.0-cp310-cp310-macosx_10_9_x86_64.whl · pyjnius-1.7.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
v1.7.0 · released 2025-09-08

Yes, if you need Python–Java interoperability. PyJNIus is actively maintained, MIT-licensed, widely used, has no known vulnerabilities, and ships pre-built wheels for modern Python versions. The main requirement is having a JDK installed and configured—a one-time setup cost. Install it if you're building a Kivy mobile app, integrating Python with Java libraries, or automating JVM-based systems.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • A Java Development Kit (JDK) must be installed and JAVA_HOME configured on Windows; on macOS and Linux, JDK is typically auto-detected.
  • Medium install friction: the package ships pre-built wheels for Python 3.10, 3.11, 3.12, and 3.13 across macOS, Linux, Windows, and ARM platforms, but requires a Java Development Kit (JDK) to be installed and configured on your system.
  • On Windows, JAVA_HOME must be set; on macOS and Linux it is usually auto-detected.

License · maintenance · safety

permissive license (permissive) — PyJNIus is MIT licensed (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2025-09-08 (340 days) · last repo commit 2026-08-12 · 1,482 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 295,263 downloads/mo, #7,927 on PyPI

Verify before relying

pip install pyjnius

from jnius import autoclass
Stack = autoclass('java.util.Stack')
stack = Stack()
stack.push('hello')
print(stack.pop())
  • Whether pre-built wheels include JNI headers or if compilation from source requires additional build tools.
  • Performance overhead of the Python–Java bridge for high-frequency method calls.
  • Compatibility with alternative JVM implementations beyond standard OpenJDK.
Same gist for agents: .md · .json

What it is and what it does

PyJNIus is a Python library that bridges Python and Java by exposing Java classes and methods to Python code via the Java Native Interface (JNI). It lets you instantiate Java objects, call methods, access fields, and work with Java data types directly from Python—all without writing native C code yourself. The library is managed by the Kivy team and works on desktop (macOS, Linux, Windows) and mobile (Android) platforms.

You can use it two ways: with autoclass() for dynamic discovery of all Java class members, or by manually declaring JavaClass subclasses with specific methods and fields for finer control. It's commonly used in Kivy mobile apps to access Android hardware and in desktop applications that need to leverage existing Java libraries or interact with the JVM.

Use it for

  • Access Android hardware sensors and APIs from a Python mobile app built with Kivy.
  • Call Java utility classes and data structures from Python without rewriting them.
  • Integrate Python scripts with existing Java libraries or legacy Java codebases on desktop systems.
  • Build cross-platform mobile apps where Python handles UI logic and Java handles platform-specific functionality.
  • Prototype or automate Java applications by scripting them from Python.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need Python–Java interoperability.

PyJNIus is actively maintained, MIT-licensed, widely used, has no known vulnerabilities, and ships pre-built wheels for modern Python versions. The main requirement is having a JDK installed and configured—a one-time setup cost. Install it if you're building a Kivy mobile app, integrating Python with Java libraries, or automating JVM-based systems.

Install

pyjnius on PyPI

Before you install

Medium install friction: the package ships pre-built wheels for Python 3.10, 3.11, 3.12, and 3.13 across macOS, Linux, Windows, and ARM platforms, but requires a Java Development Kit (JDK) to be installed and configured on your system. On Windows, JAVA_HOME must be set; on macOS and Linux it is usually auto-detected. The project is actively maintained with recent activity.

A Java Development Kit (JDK) must be installed and JAVA_HOME configured on Windows; on macOS and Linux, JDK is typically auto-detected.

License in practice

PyJNIus is MIT licensed (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install pyjnius

from jnius import autoclass
Stack = autoclass('java.util.Stack')
stack = Stack()
stack.push('hello')
print(stack.pop())

Verify before relying

  • Whether pre-built wheels include JNI headers or if compilation from source requires additional build tools.
  • Performance overhead of the Python–Java bridge for high-frequency method calls.
  • Compatibility with alternative JVM implementations beyond standard OpenJDK.

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 340 days since the last release
Last repo commit
First released
Downloads295,263 / month, #7,927 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: AndroidOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Application Frameworks

Evidence: pyjnius-1.7.0-cp310-cp310-macosx_10_9_universal2.whl; pyjnius-1.7.0-cp310-cp310-macosx_10_9_x86_64.whl; pyjnius-1.7.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyjnius-1.7.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyjnius-1.7.0-cp310-cp310-win32.whl; pyjnius-1.7.0-cp310-cp310-win_amd64.whl; pyjnius-1.7.0-cp311-cp311-macosx_10_9_universal2.whl; pyjnius-1.7.0-cp311-cp311-macosx_10_9_x86_64.whl; pyjnius-1.7.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyjnius-1.7.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyjnius-1.7.0-cp311-cp311-win32.whl; pyjnius-1.7.0-cp311-cp311-win_amd64.whl; pyjnius-1.7.0-cp312-cp312-macosx_10_13_universal2.whl; pyjnius-1.7.0-cp312-cp312-macosx_10_13_x86_64.whl; pyjnius-1.7.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyjnius-1.7.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyjnius-1.7.0-cp312-cp312-win32.whl; pyjnius-1.7.0-cp312-cp312-win_amd64.whl; pyjnius-1.7.0-cp313-cp313-macosx_10_13_universal2.whl; pyjnius-1.7.0-cp313-cp313-macosx_10_13_x86_64.whl

Tags

Capabilities
python java interop jnicall java from pythonjava native interface pythonpython android java bridgejni wrapper pythonjava class access pythonpython jvm integration
Topics
java-interopjni-bridgeandroid-kivy
PyPI keywords
JavaJNIAndroid

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “python java interop jni”

  • pyjniusPyJNIus lets Python code call Java classes and methods directly using…
  • mutf8Encodes and decodes MUTF-8 (Modified UTF-8), a variant used in Java…
  • jpype1JPype provides Python access to Java classes and libraries by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also Kivy · jdk4py · mutf8 · install-jdk · jpype1 · plyer · asynckivy · py4j · pyjks · alluka