pyicat_plus.client.bliss.get_icat_client#
- pyicat_plus.client.bliss.get_icat_client(timeout=None, metadata_urls=None)[source]#
Create and return an instance of IcatClient using configuration retrieved from a Beacon server. It is determined from the BEACON_HOST environment variable. If the configuration is unavailable, a RuntimeError is raised. :type timeout:
Optional[float] :param timeout: optional timeout for the ICAT client operations. :type metadata_urls:Optional[List[str]] :param metadata_urls: URLs of the ActiveMQ message brokers to be used for creating ICAT datasets from a directory with metadata. If provided, these URLs will override the configuration retrieved from Beacon. :rtype:IcatClient:returns: the ICAT Client.