I’m trying to figure out the different use cases for creating an omero connection or a client from within python.
Most examples use the connection object, but when using the scripting service, it all starts with a client object.
What are the use cases of one and the other?
omero.gateway.BlitzGateway (i.e. connection) object is higher-level and in all cases wraps an
omero.client instance. If none is passed in to the constructor (e.g.
BlitzGateway(client_obj=c)) then one will be created internally.
If you find that there’s something you can’t access from the connection object, then you may need to use the client object, but that is possible whether you pass your own in or if one is created automatically by using