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 managing key-value entries with explicit defaults, persistence controls, type-safe updates, and metadata snapshots.
@generates
from typing import Any, Dict
def init_entry(table: Any, key: str, default: Any = None, persistent: bool = False) -> Any:
"""Ensure an entry exists for the key, apply the default if unset, optionally mark it persistent, and return the entry handle."""
def update_entry(entry: Any, value: Any, *, allow_type_override: bool = False) -> None:
"""Write a value to an entry; reject type changes unless allow_type_override is True, in which case the stored type is replaced."""
def entry_snapshot(entry: Any) -> Dict[str, Any]:
"""Return metadata including name, human-readable data type, persistence status, and last-change timestamp (ms)."""
def clear_entry(entry: Any, *, fallback: Any = None) -> Any:
"""Remove persistence, delete the stored value, and return the value that subsequent reads should yield as a fallback."""Pure-Python NetworkTables implementation for key/value communication.