def opensearch(self):
        if not self.opensearchobj:
            self.opensearchobj = opensearch.OpenSearch(self.context)

        return self.opensearchobj
enable OpenSearch
dataset/ETHPy150Open geopython/pycsw/pycsw/server.py/Csw.opensearch