narupa.essd.client module¶
A module containing a Extremely Simple Service Discovery client.
-
class
narupa.essd.client.
DiscoveryClient
(address: Optional[str] = None, port: Optional[int] = None)¶ Bases:
object
-
close
()¶
-
port
¶
-
search_for_services
(search_time: float = 5.0, interval=0.033) → Iterable[narupa.essd.servicehub.ServiceHub]¶ Searches for and yields services for the given search time.
Parameters: - search_time – Time, in seconds, to search for.
- interval – Interval in seconds to wait between checking for new service broadcasts.
Returns: A set of services discovered over the duration.
-