Questions tagged [jython]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
54 views

Script to check a web service

I'm a Python novice. The system I'm using is called IBM Maximo Asset Management. In Maximo, we can write Python scripts that utilize Maximo's Java API/methods. So the script is technically a Jython ...
user avatar
  • 198
3 votes
1 answer
41 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: ...
user avatar
  • 198
3 votes
1 answer
242 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. ...
user avatar
  • 198
2 votes
1 answer
74 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,...
user avatar
  • 198
5 votes
1 answer
234 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 ...
user avatar
  • 198
0 votes
0 answers
49 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 ...
user avatar
1 vote
1 answer
74 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 ...
user avatar
  • 198
6 votes
1 answer
211 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 ...
user avatar
  • 198
2 votes
2 answers
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 ...
user avatar
  • 1,218
4 votes
1 answer
956 views

Converting JDBC to CSV

One of my first ever Jython scripts lets me get comma-separated values out of an RDBMS: ...
user avatar
  • 175
2 votes
1 answer
426 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: ...
user avatar
10 votes
1 answer
963 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 ...
user avatar
  • 201