Package logilab :: Package common :: Module pyro_ext
[frames] | no frames]

Module pyro_ext

source code

Python Remote Object utilities

Main functions available:

* `register_object` to expose arbitrary object through pyro using delegation
  approach and register it in the nameserver.
* `ns_unregister` unregister an object identifier from the nameserver.
* `ns_get_proxy` get a pyro proxy from a nameserver object identifier.

:organization: Logilab

Functions
 
ns_group_and_id(idstr, defaultnsgroup=_MARKER) source code
 
host_and_port(hoststr) source code
 
locate_ns(nshost)
locate and return the pyro name server to the daemon
source code
 
register_object(object, nsid, defaultnsgroup=_MARKER, daemonhost=None, nshost=None)
expose the object as a pyro object and register it in the name-server
source code
 
ns_unregister(nsid, defaultnsgroup=_MARKER, nshost=None)
unregister the object with the given nsid from the pyro name server
source code
 
ns_get_proxy(nsid, defaultnsgroup=_MARKER, nshost=None) source code
 
set_pyro_log_threshold(level) source code
Function Details

register_object(object, nsid, defaultnsgroup=_MARKER, daemonhost=None, nshost=None)

source code 
expose the object as a pyro object and register it in the name-server

return the pyro daemon object