Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  What Python libraries are included in Maximo 7.6.1.1?

    Posted 02/06/20 11:01 AM
    What Python libraries are included in OOB Jython 2.7.0/Maximo 7.6.1.1?

    For example, I can see that MATH and OS are included, but JSON and CURSES are not.

    What's the rhyme or reason behind this? I'm reluctant to manually try every python library I can think of to find out.

    (Similar question here: List of Jython/Python libraries that are excluded from Maximo)

    ------------------------------
    Thanks
    ------------------------------

    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: What Python libraries are included in Maximo 7.6.1.1?

    Posted 02/07/20 10:09 AM
    Alternatively you can try something similar using automation script (we are currently using 7.6.0.8):

    ######
    from com.ibm.json.java import JSONObject
    ​from com.ibm.tivoli.maximo.oslc import OslcUtils

    ## parse incoming json 

    reqData = OslcUtils.bytesToJSONArray(StringUtil.toBytes(requestBody))

    for i in range(len(reqData)):
          ## do something

    Pankaj Bhide




    ------------------------------
    Pankaj Bhide
    Associate/Analyst
    Berkeley National Laboratory
    Berkeley CA
    (510) 486-4681
    ------------------------------