Skip to main content

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
209 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 ...
User1974's user avatar
  • 198
3 votes
1 answer
80 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: ...
User1974's user avatar
  • 198
3 votes
1 answer
814 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. ...
User1974's user avatar
  • 198
2 votes
1 answer
114 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,...
User1974's user avatar
  • 198
5 votes
1 answer
374 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 ...
User1974's user avatar
  • 198
1 vote
1 answer
83 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 ...
User1974's user avatar
  • 198
6 votes
1 answer
240 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 ...
User1974's user avatar
  • 198
2 votes
2 answers
2k 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 ...
miracle173's user avatar
  • 1,336
4 votes
1 answer
1k views

Converting JDBC to CSV

One of my first ever Jython scripts lets me get comma-separated values out of an RDBMS: ...
hd1's user avatar
  • 175
2 votes
1 answer
445 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
968 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 ...
che2cbs's user avatar
  • 201