tessl install tessl/pypi-pynetworktables@2021.0.0A pure Python implementation of NetworkTables, used for robot communications in the FIRST Robotics Competition.
Agent Success
Agent success rate when using this tile
75%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
74%
Utility module for storing, restoring, and filtering network table entries using the dependency's native persistence format.
persistent=True marks it for disk persistence; writing the same key later with persistent=False clears persistence while keeping the current value. @test@generates
from typing import Any, Iterable
def write_entry(key: str, value: Any, *, persistent: bool = False) -> None:
...
def save_persistent(filepath: str) -> None:
...
def load_persistent(filepath: str) -> dict[str, Any]:
...
def snapshot_filtered(filepath: str, prefixes: Iterable[str]) -> dict[str, Any]:
...
def load_filtered(filepath: str, prefixes: Iterable[str]) -> dict[str, Any]:
...Uses the dependency's built-in network table entry storage and persistence format to write/read entries and snapshots.