A pure Python implementation of NetworkTables, used for robot communications in the FIRST Robotics Competition.
75
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.
Install with Tessl CLI
npx tessl i tessl/pypi-pynetworktablesdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10