I've released a working version of the code that has limited capability.
This version of code (r2) can get hosts by either IP address or caption and return the ip_address and caption values from the Orion database
Apols for the mangled screenshot but obviously have to hide certain details....
There's a Python API already out there in the OrionSDK github account. Check it out!
Developer Analyst @ Loop1 Systems, Inc.
May be an very old post, but the idea of a more idiomatic Python way of interaction with Orion would be very nice. If we had a project on GitHub that did a nice wrapper round the raw it would be really useful. As it stands all of us must to writing all the same SWQL in our code and reducing duplication would be really nice.
What duplication did you have in mind? The SWQL you write would mostly be to limit what you're getting from the API in the way of things like node details for example. If you just want everything about the node you can GET on the Orion.Node\NodeID and get everything at once.