Pyro4.naming
— Pyro name server¶
Name Server and helper functions.
-
Pyro4.naming.
locateNS
(host=None, port=None)¶ Get a proxy for a name server somewhere in the network.
-
Pyro4.naming.
resolve
(uri)¶ Resolve a ‘magic’ uri (PYRONAME) into the direct PYRO uri.
-
Pyro4.naming.
startNS
(host=None, port=None, enableBroadcast=True, bchost=None, bcport=None, unixsocket=None, nathost=None, natport=None)¶ utility fuction to quickly get a Name server daemon to be used in your own event loops. Returns (nameserverUri, nameserverDaemon, broadcastServer).
-
class
Pyro4.naming.
NameServer
¶ Pyro name server. Provides a simple flat name space to map logical object names to Pyro URIs.
-
list
(prefix=None, regex=None)¶ Retrieve the registered items as a dictionary name-to-URI. The URIs in the resulting dict are strings, not URI objects. You can filter by prefix or by regex.
-
lookup
(name)¶ Lookup the given name, returns an URI if found
-
ping
()¶ A simple test method to check if the name server is running correctly.
-
register
(name, uri, safe=False)¶ Register a name with an URI. If safe is true, name cannot be registered twice. The uri can be a string or an URI object.
-
remove
(name=None, prefix=None, regex=None)¶ Remove a registration. returns the number of items removed.
-