People who code: we want your input. Take the Survey

Questions tagged [jython]

Jython is an open-source implementation of the Python programming language in Java.

Filter by
Sorted by
Tagged with
3
votes
1answer
36 views

Parse backslash-delimited hierarchy path into separate columns

I have rows in a database table with a hierarchypath column. The values in the column are hierarchy paths with up to four levels: ...
2
votes
1answer
122 views

Determine if points are within a rotated rectangle

Using only Python 2.7 and the standard library (no imports): Determine if a point is inside the rotated rectangle. ...
2
votes
1answer
65 views

Part 2: Create or update record via HTTP request

This script was previously reviewed here: Part 1: Create or update record via HTTP request I've made the changes that were suggested by @Reinderien. Now that the code has been significantly refactored,...
5
votes
1answer
168 views

Part 1: Create or update record via HTTP request

Update: This is an older version of the question/script. The new version can be found here: Part 2: Create or update record via HTTP request I have an external system that sends an HTTP request to a ...
0
votes
0answers
26 views

Use cURL and threads to make API calls

Requirement We use a tool where we have Jython as one of the scripting languages available for making custom scripts. The requirement is that we need to make multiple API calls (in parallel) and ...
1
vote
1answer
69 views

Work order spatial query (Part 2)

Part 2: Error Handling (and anything else that can be improved) (Part 1 focused on general cleanup.) I received this comment in an unrelated post (thanks @Milton): ...Since it is obvious you are ...
6
votes
1answer
191 views

Work order spatial query (Part 1)

Part 1: General Cleanup (Edit: Part 2 is here.) I have a script in a Work Order Management System (Maximo) that performs a spatial query. Details: Takes the X&Y coordinates of a work order in ...
2
votes
2answers
1k views

Jython using JDBC

I want to access databases by Jython by using JDBC drivers. I started with SQLite because this needs no database installation. I found two tutorials that implement similar things in Java and in ...
4
votes
1answer
934 views

Converting JDBC to CSV

One of my first ever Jython scripts lets me get comma-separated values out of an RDBMS: ...
2
votes
1answer
411 views

Copying sections of one picture to another

I have two solutions (in Jython) to take two pictures and copy and paste alternate sections of one picture to the other, like so: ...
10
votes
1answer
961 views

Encapsulating the WebSphere Jython API

As you review this, please keep in mind I'm using Jython 2.1 as shipped with IBM's WebSphere 7.0 (their latest-and-greatest). I don't have decorators, properties, new style objects, or any other ...