Skip to content

timrid/chaquopy-stubs

Repository files navigation

chaquopy-stubs

Python type stubs for Android/Maven libraries, generated with chaquopy-stubgen.

Each stub package corresponds to a Maven artifact and provides .pyi type annotations for use with Chaquopy — the Python SDK for Android.

⚠️ Disclaimer: This is not an official tool of the Chaquopy project. It is an independent, community-maintained project.

Installation

Android platform stubs

To install the stubs for the Android SDK (API Level 35):

pip install chaquopy-stubs-android~=35.0

A build date is appended to each version, so packages are published under a scheme like 35.20260325. The build date indicates which version of chaquopy-stubgen was used to generate the stubs. So to always get the latest available stubs for API Level 35, use ~=35.0 in your requirements and you don't need to worry about the build date.

Maven artifact stubs

Stub packages are named after their Maven coordinate:

chaquopy-stubs-{group_id}-{artifact_id}

For example, if your Android app depends on com.google.android.material:material:1.12.0, install the matching stubs:

pip install chaquopy-stubs-com-google-android-material-material~=1.12.0

Stubs are only published for the latest patch release of each minor version. For example, if 1.12.4 is the latest patch of the 1.12.x series, only 1.12.4 is available — not 1.12.0, 1.12.1, etc. Therefore, always use ~=1.12.0 in your requirements to automatically pick the latest available patch.

Additionally, a build date is appended to each version, so packages are published under a scheme like 1.12.4.20260325. The build date indicates which version of chaquopy-stubgen was used to generate the stubs. When using the ~= operator, pip will always pick the latest available version, so you don't need to worry about the build date in your requirements.

Contributing

See CONTRIBUTING.md for instructions on how to add missing packages.

About

Python type stubs for java classes using Chaquopy.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages