ibisclient.connection module¶

Classes:

Connection classes to connect to the Lookup/Ibis web service and allow API methods to be invoked.

createConnection()¶

Create an IbisClientConnection to the Lookup/Ibis web service API at https://www.lookup.cam.ac.uk/.

The connection is initially anonymous, but this may be changed using its set_username() and set_password() methods.

Returns
IbisClientConnection

A new connection to the Lookup server.

createLocalConnection()¶

Create an IbisClientConnection to a Lookup/Ibis web service API running locally on https://localhost:8443/ibis/.

The connection is initially anonymous, but this may be changed using its set_username() and set_password() methods.

This is intended for testing during development. The local server is assumed to be using self-signed certificates, which will not be checked.

Returns
IbisClientConnection

A new connection to a Lookup server assumed to be running on localhost.

createTestConnection()¶

Create an IbisClientConnection to the Lookup/Ibis test web service API at https://lookup-test.srv.uis.cam.ac.uk/.

The connection is initially anonymous, but this may be changed using its set_username() and set_password() methods.

Note

This test server is not guaranteed to always be available, and the data on it may be out of sync with the data on the live system.

Returns
IbisClientConnection

A new connection to the Lookup test server.