Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python library to access Java classes (ctypes/cffi-based PyJNIus)

Project description

Currently only as placeholder (because a base package jtypes.jvm is still in development)


Python library for accessing Java classes


jtypes.pyjnius is a bridge between Python and Java, allowing these to intercommunicate.
It is an effort to allow python programs full access to Java class libraries.

jtypes.pyjnius is a lightweight Python package, based on the ctypes or cffi library.
It is an almost fully compliant implementation of Mathieu Virbel’s and Gabriel Pettier’s PyJNIus package by reimplementing whole its functionality in a clean Python instead of Cython.

About PyJNIus:

Note from the original website:

PyJNIus is a Python library for accessing Java classes.

A minimal PyJNIus example looks something like this:

Quick overview

>>> from jnius import autoclass
>>> System = autoclass('java.lang.System')
>>> System.out.println('Hello world')
Hello world

>>> Stack = autoclass('java.util.Stack')
>>> stack = Stack()
>>> stack.push('hello')
>>> stack.push('world')
>>> print(stack.pop())
>>> print(stack.pop())


  • Either the Sun/Oracle JRE/JDK or OpenJDK.


pip install --upgrade jtypes.pyjnius

To ensure everything is running correctly you can run the tests using

python -m jt.jnius.tests



Copyright (c) 2014-2017 Adam Karpierz

Licensed under the MIT License
Please refer to the LICENSE file.



1.1.0b2 (2017-01-21)

  • Documentation update.

1.1.0b1 (2017-01-01)

  • First beta release.

1.1.0a1 (2014-11-30)

  • Initial version.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (74.2 kB) Copy SHA256 hash SHA256 Source None Mar 28, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page