Library for easier use of Airlock's REST API.
This library is not part of the official Airlock product delivery and Ergon/Airlock does not provide support for it. Best effort support may be provided by the contributor of the library.
The current version of this library has been developed and tested for hosts running Airlock Gateway 8.4, some REST calls may not work for hosts running different versions of Airlock Gateway.
A full documentation of this library is available at Airlock's GitHub Page.
Several example scripts are provided under the examples folder to be used as starting point for developing your own scripts.
This library uses the requests library to perform standard HTTP requests
to Airlock Gateway REST endpoints.
404 response status codes are handled by the library, i.e. if a provided ID
or REST endpoint cannot be found, no exceptions will be raised.
For all other unexpected response status codes, e.g. malformed data is used to
generate a new mapping, a custom Exception named AirlockGatewayRestError is
raised.
In addition to that, any Exception raised by the requests library is not
handled by this library, so for example if network problems occur,
multiple Errors will be raised by the underlying library.