Giter Site home page Giter Site logo

jtypes.jep's Introduction

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

jtypes.jep

Java Embedded Python.

Overview

jtypes.jep embeds CPython in Java.

PyPI record.

jtypes.jep is a lightweight Python package, based on the ctypes or cffi library.
It is an almost fully compliant implementation of Mike Johnson's Jep package by reimplementing its functionality in a clean Python instead of C.

About Jep:

Borrowed from the original website:

Jep embeds CPython in Java through JNI and is safe to use in a heavily threaded environment.

Some benefits of embedding CPython in a JVM:

  • Using the native Python interpreter may be much faster than alternatives.
  • Python is mature, well supported, and well documented.
  • Access to high quality Python modules, both native CPython extensions and Python-based.
  • Compilers and assorted Python tools are as mature as the language.
  • Python is an interpreted language, enabling scripting of established Java code without requiring recompilation.
  • Both Java and Python are cross platform, enabling deployment to different operating systems.

Notable features

  • Interactive Jep console much like Python's interactive console
  • Supports multiple, simultaneous, mostly sandboxed sub-interpreters
  • Numpy support for Java primitive arrays

Requirements

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

Installation

Prerequisites:

To install run:

python -m pip install --upgrade jtypes.jep

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

python -m jt.jep.tests

Development

Visit development page

Installation from sources:

Clone the sources and run:

python -m pip install ./jtypes.jep

or on development mode:

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

Prerequisites:

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

    python -m pip install tox

License

Copyright (c) 2014-2018 Adam Karpierz

Licensed under the zlib/libpng License
http://opensource.org/licenses/zlib
Please refer to the accompanying LICENSE file.

Authors

jtypes.jep's People

Contributors

karpierz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.