Compare SWIG vs PyJNIus and see what are their differences.


SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. (by swig)
Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
13 4
4,494 1,198
1.9% 1.3%
9.8 4.0
3 days ago 4 days ago
C++ Python
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of SWIG. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-11.


Posts with mentions or reviews of PyJNIus. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-04.
  • How to implement Fingerprint in kivy python
    3 projects | reddit.com/r/kivy | 4 Mar 2022
    I am not aware of any good example code for this, but you can access platform-specific APIs with pyjnius (android) and pyobjus (ios). This should allow you to implement fingerprint authentication using Google/Apple APIs for those platforms -- for Windows, Linux, MacOS you probably will need to research other solutions for doing this with Python (it doesn't really involve kivy)
  • buildozer -v android debug error
    4 projects | reddit.com/r/kivy | 2 Nov 2021
    [INFO]: -> running basename https://github.com/kivy/pyjnius/archive/1.3.0.zip
  • Reference gathering about development for android
    2 projects | reddit.com/r/kivy | 23 Oct 2021
    In terms of Kivy and Android, there are two main repositories worth checking out. The first is pyjnius which is a bridge to the Android APIs, and the second is plyer which uses pyjnius to implement Android-specific features (see plyer/platforms/android directory)
  • How do I store user authentication token in my kivy app?
    1 project | reddit.com/r/kivy | 17 Jul 2021
    I have never used KeyStore to be clear, but yes, you would use pyjnius to access native Android classes/services. Just a quick google landed this issue which contains some partial autoclass that probably is something like how you'd do this..

What are some alternatives?

When comparing SWIG and PyJNIus you can also consider the following projects:


CppSharp - Tools and libraries to glue C/C++ APIs to high-level languages

Cython - The most widely used Python to C compiler

jpype - JPype is cross language bridge to allow Python programs full access to Java class libraries.


JavaCPP - The missing bridge between Java and native C++

JNA - Java Native Access

libffi - A portable foreign-function interface library.

PyCUDA - CUDA integration for Python, plus shiny features

sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:

Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint

V8 - The official mirror of the V8 Git repository