Java Embedded Python (ctypes/cffi-based Jython)
Project description
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.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:
Python 2.7 or higher or 3.4 or higher
2.7 and 3.6 are primary test environments.
pip and setuptools
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 KarpierzLicensed under the Apache License, Version 2.0Please refer to the accompanying LICENSE file.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file jtypes.jython-0.0.3a3.zip
.
File metadata
- Download URL: jtypes.jython-0.0.3a3.zip
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb4c94aa52781933fb5fe2307241bbd206c90e0d3b3b57ab3bf34e26cad51ad |
|
MD5 | c2a1db6861d5c0bf9ddefaf04797bc06 |
|
BLAKE2b-256 | 265b8331bff9387c8e2ea4d318d19b36540a16bcdd8c2dffa3fa08cce5608f9d |