node_resources
List the files a node is serving right now, as it describes itself.
Generated from Plexora 0.0.55View source
from plexora import node_resourcesnode_resources(name)Contacts the node's handshake endpoint, so this is a live answer -- what the node is serving at this moment -- rather than anything cached here.
Parameters
namestrrequiredThe registered node's name, as given to
plexora.register_node.
Returns
list[dict]One entry per resource the node is serving, each with at
least id, kind ("image", "segmentation" or "table"),
generation, loaded, state, error and fingerprint. A
segmentation entry also carries mask_mode, warning and
progress; an image entry also carries image_type and
image_type_reason.
Raises
KeyErrorIf no node named name is registered.
Examples
import plexora
for resource in plexora.node_resources("hpc"):
print(resource["kind"], resource["id"], resource["state"])