jython

Distributing my Python scripts as JAR files with Jython?

Distributing my Python scripts as JAR files with Jython? Question: I have been a Python programmer for almost two years, and I am used to writing small scripts to automate some repetitive tasks I had to do at the office. Now, apparently my colleagues noticed this, and they want those scripts too. Some of them …

Total answers: 4

Using Python from within Java

Using Python from within Java Question: Possible Duplicate: Java Python Integration I have a large existing codebase written in 100% Java, but I would like to use Python for some new sections of it. I need to do some text and language processing, and I’d much rather use Python and a library like NLTK to …

Total answers: 7

Cross-platform way to get PIDs by process name in python

Cross-platform way to get PIDs by process name in python Question: Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython? I want something like pidof but in python. (I don’t have pidof anyway.) I can’t parse /proc …

Total answers: 9

Using a java library from python

Using a java library from python Question: I have a python app and java app. The python app generates input for the java app and invokes it on the command line. I’m sure there must be a more elegant solution to this; just like using JNI to invoke C code from Java. Any pointers? (FYI …

Total answers: 6

Migrating from CPython to Jython

Migrating from CPython to Jython Question: I’m considering moving my code (around 30K LOC) from CPython to Jython, so that I could have better integration with my java code. Is there a checklist or a guide I should look at, to help my with the migration? Does anyone have experience with doing something similar? From …

Total answers: 6

log4j with timestamp per log entry

log4j with timestamp per log entry Question: this is my log output INFO main digestemails – process inbox INFO main digestemails – checking for emails in c:developmentDCMailemailKN-Source INFO main digestemails – digesting [email protected] INFO main digestemails – extracting attachments INFO main digestemails – no attachments or no attachments supported INFO main digestemails – updating database …

Total answers: 3

Is there a good NumPy clone for Jython?

Is there a good NumPy clone for Jython? Question: I’m a relatively new convert to Python. I’ve written some code to grab/graph data from various sources to automate some weekly reports and forecasts. I’ve been intrigued by the Jython concept, and would like to port some Python code that I’ve written to Jython. In order …

Total answers: 4

Modern, high performance bloom filter in Python?

Modern, high performance bloom filter in Python? Question: I’m looking for a production quality bloom filter implementation in Python to handle fairly large numbers of items (say 100M to 1B items with 0.01% false positive rate). Pybloom is one option but it seems to be showing its age as it throws DeprecationWarning errors on Python …

Total answers: 6

Is there a way to run Python on Android?

Is there a way to run Python on Android? Question: We are working on an S60 version and this platform has a nice Python API.. However, there is nothing official about Python on Android, but since Jython exists, is there a way to let the snake and the robot work together?? Asked By: Bite code …

Total answers: 23