commands module#
Commands for interacting with the JITX parts database.
This module provides functions for communicating with the JITX parts database.
- dbquery(args, limit=1000, skip_cache=False)[source]#
Query the JITX parts database.
- The function automatically categorizes arguments by their type to be sent to the server:
int-args: tuple[tuple[str, int], …]
double-args: tuple[tuple[str, float], …]
string-args: tuple[tuple[str, str], …]
tuple-double-args: tuple[tuple[str, tuple[float, …]], …]
tuple-string-args: tuple[tuple[str, tuple[str, …]], …]
- The function also passes the following parameters along to the server:
limit: int
skip_cache: bool