Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def info(self):
"""Retrieve information about this node.
>>> n = Node('localhost', 3000)
>>> n.info().version
'1.5.3'
>>> n.info().engine
'odm'
Returns:
:func:`~pyodm.types.NodeInfo`
"""
return NodeInfo(self.get('/info'))