OMERO Python Language Bindings
Table of Contents
Using the Ice Python language mapping from http://zeroc.com, OMERO provides access to your data within an OmeroBlitz server from Python code.
Using the OmeroPy libraries
The Python libraries are automatically generated for all builds since they are used internally. They are placed under OMERO_HOME/dist/lib/python. To use OmeroPy, setup you'll need to setup your PYTHONPATH:
PYTHONPATH=$HOME/omero-src/dist/lib/python python
A trivial example
import omero
c = omero.client()
try:
s = c.createSession()
# IAdmin is responsible for all user/group creation, password changing, etc.
admin = s.getAdminService()
# Who you are logged in as.
print admin.getEventContext().userName
# These two services are used for database access
query = s.getQueryService()
update = s.getUpdateService()
finally:"
c.closeSession() # "del c" MAY also call the client's destructor
Further information
See also: http://zeroc.com, OmeroBlitz, OmeroGrid, OmeroTools, OmeroApi
For the details behind writing, configuring, and executing a client, please see OmeroClients.
Also these pages might be useful:
Page Index