We're Hiring!

installation instruction for OMERO.py

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: installation instruction for OMERO.py

Postby pz3977 » Thu Jul 24, 2014 9:26 am

Thanks Simon,

It seems it works. I could made a session on the server, it asked for input [1] which I do not have a clue about that ;)

I think I am in a wrong direction. Maybe I have to rephrase my question.

I want to write a piece of code (e.g in python like the ones is provided in code sample :http://www.openmicroscopy.org/site/support/omero5/developers/Python.html) in order to use omero APIs, without installing omero.server , using omero.py package. Is it possible? I could not find BlitzGateway in omero.gateway in omero.py.

thx,
pz3977
pz3977
 
Posts: 31
Joined: Thu Jul 10, 2014 11:39 am

Re: installation instruction for OMERO.py

Postby wmoore » Fri Jul 25, 2014 8:59 am

If you've done this:

Code: Select all
$ bin/omero shell --login


and entered the server, username and password, you'll enter the Python interactive terminal.
Here you can access the Python API with an existing 'client' connection. This also has the extra benefit of autocompletion (using Tab).

Code: Select all
In [1]: dir()    # to list existing variables

In [2]: from omero.gateway import BlitzGateway

In [3]: conn = BlitzGateway(client_obj=client)                # create BlitzGateway connection wrapper

In [5]: for p in conn.listProjects():
   ...:     print p.getName()
   ...:     
   ...:     
Test-Data
Big Images
etc

User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest