Download binaries/cli/src/template/python/node/node-template.py from TomPei/csg-robomaster: direct link, hf CLI and curl.
- Browser
- Download file 268 Bytes
-
https://huggingface.co/datasets/TomPei/csg-robomaster/resolve/main/binaries/cli/src/template/python/node/node-template.py
- Command line
-
hf download hf://datasets/TomPei/csg-robomaster/binaries/cli/src/template/python/node/node-template.py
-
curl -L -o node-template.py https://huggingface.co/datasets/TomPei/csg-robomaster/resolve/main/binaries/cli/src/template/python/node/node-template.py
268 Bytes
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| from dora import Node | |
| node = Node() | |
| event = node.next() | |
| if event["type"] == "INPUT": | |
| print( | |
| f"""Node received: | |
| id: {event["id"]}, | |
| value: {event["value"]}, | |
| metadata: {event["metadata"]}""" | |
| ) | |