Python API
Interacting with XPipe from Python
Introduction
The XPipe Python API is a Python client for the XPipe HTTP API. It is essentially a wrapper for the raw HTTP API and intended to make working with it more convenient.
Installation
Connecting to the XPipe application
To start out, you need to enable the API access in the XPipe settings. You can find that under Settings -> HTTP API. For only local API access, you don't need to worry about the API key in the settings menu.
There's also an async version of the client that can be accessed as AsyncClient. All calls are run asynchronously with that client. This intro will only cover the sync client though.
Querying connections
A connection reference is just a UUID string. You can query one or multiple connections stored in XPipe based on various filters.
Getting connection information
Since each connection reference is just a UUID string, you have to retrieve information for it using another API call.
Adding connections
You can add custom connections as well.
GUI actions
You can perform some actions for the desktop application from the CLI as well.
Shell operations
You can open remote shell sessions to systems and run arbitrary commands in them.
File system operations
You can interact with the file system of any remote shell as well.