tensor-grep
High-performance grep-compatible CLI with Rust, GPU, and AST/NLP routing
What it is and what it does
tensor-grep is a command-line search utility that reimplements grep functionality with a Rust core for speed and optional GPU acceleration. It is designed to be grep-compatible while adding intelligent routing via AST and NLP analysis to optimize search strategies. The package exposes Rust bindings through pyo3 and depends on typer and rich for CLI presentation, plus cryptography and opentelemetry-api for security and observability.
The tool targets developers and system administrators who need faster text search than traditional grep, particularly when searching large codebases or when GPU acceleration is available. It is actively maintained and released frequently, though its license terms are not yet clarified in the package metadata.
Use it for:
- Search large codebases faster than grep by leveraging Rust performance and GPU acceleration.
- Use AST-aware routing to optimize pattern matching in source code with semantic understanding.
- Integrate into CI/CD pipelines where search speed directly impacts build time.
- Perform NLP-guided searches when text content requires linguistic analysis beyond regex.
- Replace grep in shell scripts where performance is a bottleneck.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A high-performance grep-compatible command-line search tool with Rust-backed execution, GPU acceleration support, and intelligent routing via AST/NLP analysis.
Yes, with conditions. The package is actively maintained, has no known vulnerabilities, and offers genuine performance advantages via Rust and GPU support. However, verify the license terms before use—the metadata does not clarify licensing. Install friction is moderate due to compiled bindings, but wheels are available for common platforms. Best suited for developers who need faster search and can require Python 3.11+.
Install
tensor-grep on PyPI
pip
pip install tensor-grepuv
uv add tensor-greppoetry
poetry add tensor-grepInstalling tensor-grep
Before you install
Medium install friction due to compiled Rust bindings (wheels provided for macOS ARM64, Linux x86_64, and Windows). Active maintenance with a release 1 day old. Eight runtime dependencies including typer, rich, and cryptography add moderate complexity.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or restricted contexts.
Quickstart
pip install tensor-grep
from tensor_grep import search
results = search(pattern='example', path='.')
Requires Python 3.11 or later. Precompiled wheels available for macOS ARM64, Linux x86_64, and Windows; other platforms may require building from source.
Verify before relying
- Whether GPU acceleration requires additional system libraries or CUDA/ROCm installation.
- What AST/NLP routing strategies are supported and how they affect search performance.
- Whether the tool maintains full grep command-line compatibility or implements a subset.
- How the package handles very large files or directory trees in practice.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 8 — typer, rich, mcp, pathspec, pyyaml, opentelemetry-api, importlib-metadata, cryptography |
| Maintenance | actively maintained — 1 days since the last release |
| First released | |
| Downloads | 271,898/month — #8,216 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensor_grep-1.110.16-cp311-abi3-macosx_11_0_arm64.whl; tensor_grep-1.110.16-cp311-abi3-manylinux_2_39_x86_64.whl; tensor_grep-1.110.16-cp311-abi3-win_amd64.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
flpcflpc wraps the Rust regex crate to provide…
permissive · top 5,000 on PyPI
ast-grep-cliast-grep-cli is a command-line tool for…
permissive · top 5,000 on PyPI
ignore-pythonProvides fast recursive directory traversal…
unclear · top 15,000 on PyPI
moviepilot-rustProvides Rust-accelerated parsing and filtering…
unclear · top 15,000 on PyPI
grep-astSearch source code files by pattern and display…
permissive · top 5,000 on PyPI
rignoreProvides fast directory traversal with support…
permissive · top 1,000 on PyPI
gritqlGritQL is a Python binding for a declarative…
permissive · top 15,000 on PyPI
regressProvides Python bindings to the Rust regress…
permissive · top 5,000 on PyPI
ast-grep-pyast-grep-py is a Python binding for ast-grep, a…
permissive · top 5,000 on PyPI
retworkxA deprecated package name for rustworkx, a…
permissive · top 15,000 on PyPI