# kivy/pyjnius

Access Java classes from Python

Repository: https://github.com/kivy/pyjnius
Canonical: https://ross.abutalabs.com/products/pyjnius
Homepage: https://pyjnius.readthedocs.org
Language: Python
License: MIT
License Family: permissive
Topics: python, java, jni, jni-android, jni-wrapper
Last push: 2026-08-12T03:13:49+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 15, longevity 100
- inputs: {"age_days": 5133, "days_push": 21, "days_rel": 359, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1480, forks 328 (observed 2026-08-28T04:04:50.743627+00:00)

## What it is
PyJNIus is a Python library that lets Python code access and call Java classes through the Java Native Interface (JNI). It is maintained by the Kivy team and is commonly used with python-for-android, but also works standalone on desktop and mobile platforms.

## Use cases
- call java classes from python
- access android api from python app
- use java libraries in a python project
- bridge python and jvm via jni
- read android hardware sensors from kivy app
- interoperate python with existing java code

## When to choose
- you need to call Java or Android APIs directly from Python, especially in Kivy/python-for-android apps
- you want a lightweight JNI bridge without writing C/C++ glue code
- you need to reuse existing Java libraries from Python on desktop or Android

## When to avoid
- you only need pure-Python alternatives and no Java dependencies
- you are targeting platforms without a JVM, such as iOS or WebAssembly
- you want high-level RPC or web-service integration rather than direct JNI access

## Facets
- artifact type: library
- maturity: active
- function: sdk, developer-tools
- domain: cross-platform, android-tools, developer-tools
- platform: python, cross-platform, jvm
- tags: jni, java-interop, kivy, python-java-bridge, android

## Member repositories
- kivy/pyjnius (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.743627+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:15.275807+00:00, confidence not recorded.
  - readme: https://github.com/kivy/pyjnius (fetched 2026-08-28T04:04:50.743627+00:00, sha 1f2ceeffef66)
  - registry_pypi: https://pypi.org/pypi/pyjnius/json (fetched 2026-08-29T11:41:37.117021+00:00, sha 963d24437764)
- Data as of 2026-08-30T08:39:29.467469+00:00.
