Search parts by name or family root. The local SQLite index is used
when present; otherwise search falls back to the NXP portfolio map.
Partial matches (prefix and substring) are supported by default; pass
--fuzzy to also rank by edit-ratio similarity for typos.
nxp-monkey search QUERY [--fuzzy] [--limit N]
| Arg / flag | Effect |
|---|---|
| QUERY | Case-insensitive search string. May be a prefix or a concrete orderable MPN. |
| --fuzzy | Add edit-ratio matches above 0.55 similarity. |
| --limit N | Maximum number of hits (default 50). |
Tab-separated rows with columns part, family,
score, matched. Ranked descending by score.
Returns exit code 1 when no index or portfolio match is found.
| Match | Score |
|---|---|
| exact part match | 1.00 |
| concrete orderable alias for a masked key | 0.98 |
| exact family match | 0.95 |
| part prefix | 0.90 |
| family prefix | 0.85 |
| part substring | 0.70 |
| family substring | 0.65 |
| fuzzy ratio | 0.6 × ratio (when above threshold) |
With the global --json flag, search writes
search.json to the working directory (query, hits with
part / family / score / matched) and prints that path on stdout instead
of the table.
nxp_monkey.search("MCXA", fuzzy=False, limit=50)
tests/L0_public_cli/test_search_cli.pytests/L3_public_workflows/test_search.py