Package intermine :: Module webservice :: Class Registry
[hide private]
[frames] | no frames]

Class Registry

source code

            object --+
                     |
UserDict.DictMixin --+
                     |
                    Registry

A Class representing an InterMine registry.

Registries are web-services that mines can automatically register themselves with, and thus enable service discovery by clients.

SYNOPSIS

example:

   from intermine.webservice import Registry

   # Connect to the default registry service
   # at www.intermine.org/registry
   registry = Registry()

   # Find all the available mines:
   for name, mine in registry.items():
       print name, mine.version

   # Dict-like interface for accessing mines.
   flymine = registry["flymine"]

   # The mine object is a Service
   for gene in flymine.select("Gene.*").results():
       process(gene)

This class is meant to aid with interoperation between mines by allowing them to discover one-another, and allow users to always have correct connection information.

Instance Methods [hide private]
 
__init__(self, registry_url='http://www.intermine.org/registry')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__contains__(self, name) source code
 
__getitem__(self, name) source code
 
__setitem__(self, name, item) source code
 
__delitem__(self, name) source code
 
keys(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from UserDict.DictMixin: __cmp__, __iter__, __len__, clear, get, has_key, items, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update, values

Class Variables [hide private]
  MINES_PATH = '/mines.json'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, registry_url='http://www.intermine.org/registry')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__contains__(self, name)
(In operator)

source code 
Overrides: UserDict.DictMixin.__contains__