Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

jtypes.jython

Java Embedded Python.

Overview

jtypes.jython embeds CPython in Java.
It is safe to use in a heavily threaded environment.

PyPI record.

jtypes.jython is a Python Java package, based on the ctypes or cffi library.
It is an implementation of substantial part of Jython Java bridge and API by reimplementing its functionality and in a clean CPython.

About Jython:

Borrowed from the original website:

What is Jython?

Jython is an implementation of the high-level, dynamic, object-oriented language Python seamlessly integrated with the Java platform. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and non-commercial use and is distributed with source code. Jython is complementary to Java and is especially suited for the following tasks:

Embedded scripting - Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add functionality to the application. Interactive experimentation - Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This allows programmers to experiment and debug any Java system using Jython. Rapid application development - Python programs are typically 2-10X shorter than the equivalent Java program. This translates directly to increased programmer productivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during development and in shipping products.

Requirements

  • Java >= 1.7 - either the Sun/Oracle JRE/JDK or OpenJDK.

  • Numpy (optional) >= 1.5 (numpy >= 1.7 recommended)

Installation

Prerequisites:

To install run:

python -m pip install --upgrade jtypes.jython

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

python -m jt.jython.tests

Development

Visit development page

Installation from sources:

Clone the sources and run:

python -m pip install ./jtypes.jython

or on development mode:

python -m pip install --editable ./jtypes.jython

Prerequisites:

  • Development is strictly based on tox. To install it run:

    python -m pip install tox

License

Copyright 2015-2018 Adam Karpierz

Licensed under the Apache License, Version 2.0
Please refer to the accompanying LICENSE file.

Authors

Changelog

0.0.3a3 (2018-11-08)

  • Update of the required setuptools version.

  • Minor setup and tests improvements.

0.0.3a0 (2018-05-22)

  • Update of the required setuptools version.

0.0.2a0 (2018-02-26)

  • Improvement and simplification of setup and packaging.

0.0.1a0 (2018-01-29)

  • Development moved to github.

0.0.0 (2013-10-05)

  • Initial version.

Release files for jtypes.jython 0.0.3a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jtypes.jython 0.0.3a3
File Size Uploaded
jtypes.jython-0.0.3a3.zip 38.4 kB Details

Release files / jtypes.jython-0.0.3a3.zip

Download URL jtypes.jython-0.0.3a3.zip
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3eb4c94aa52781933fb5fe2307241bbd206c90e0d3b3b57ab3bf34e26cad51ad
BLAKE2b-256 checksum
How to use checksums
265b8331bff9387c8e2ea4d318d19b36540a16bcdd8c2dffa3fa08cce5608f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.2 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.3a3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page