Spaces:
Paused
Paused
Download changedetectionio/queuedWatchMetaData.py from minhpn/changedetection: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/queuedWatchMetaData.py
- Command line
-
hf download hf://spaces/minhpn/changedetection/changedetectionio/queuedWatchMetaData.py
-
curl -L -o queuedWatchMetaData.py https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/queuedWatchMetaData.py
280 Bytes
| from dataclasses import dataclass, field | |
| from typing import Any | |
| # So that we can queue some metadata in `item` | |
| # https://docs.python.org/3/library/queue.html#queue.PriorityQueue | |
| # | |
| class PrioritizedItem: | |
| priority: int | |
| item: Any=field(compare=False) | |