Registry / devops / tensor-grep

tensor-grep

JSON →
library1.13.35pypypi✓ verified 80d ago

High-performance grep-compatible CLI that routes searches between Rust, GPU, and AST/NLP engines. Current version 1.13.35, requires Python >=3.11. Active development with frequent releases.

pip install tensor-grep
INSTALL
IMPORT
SIG · TENSOR-GREP
T
tensor-grep
devopspythonv1.13.35
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TensorGrep
import tensor_grep
from tensor_grep import TensorGrep

Create a TensorGrep instance with a pattern and search a file or string.

from tensor_grep import TensorGrep # Initialize with a pattern tg = TensorGrep(pattern="error") # Search a file or string result = tg.search("log.txt") # or pass a string directly print(result)
Debug
Known issues
breakingIn version 1.12.0, the search() method changed return type from list of str to a SearchResult namedtuple.
fix
Access result.lines instead of treating result as a list.
affects: >=1.12.0
breakingThe GPU backend is only available when CUDA is installed. Without CUDA, tensor-grep falls back to CPU silently.
fix
Check TensorGrep.available_backends() before using GPU-specific features.
affects: >=1.0.0
deprecatedThe 'ast' engine is deprecated and will be removed in 2.0. Use 'nlp' instead.
fix
Pass engine='nlp' when initializing TensorGrep.
affects: >=1.9.0
Upgrade
Version history
1.13.35latest on PyPI
Audit
Dependencies
numpyoptionalGPU backend support
Agent activity
16 hits · last 30 days
node
16
Resources

No resource links recorded.

tensor-grep — pip install tensor-grep · libregistry