nanover.essd.client module

A module containing a Extremely Simple Service Discovery client.

class nanover.essd.client.DiscoveryClient(address: str | None = None, port: int | None = None)

Bases: object

close()
property port
search_for_services(search_time: float = 5.0, interval=0.033) Iterable[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.