Pysearch

•
1
•

Provides a high-performance, context-aware search engine for Python codebases supporting text, regex, AST, and semantic search.

Pysearch is a robust, high-performance search engine specifically designed for Python codebases, offering comprehensive context-aware retrieval capabilities. It supports diverse search methodologies including text, regex, AST structural, and lightweight semantic analysis, making it invaluable for navigating and analyzing large, multi-module projects. With both CLI and programmable API interfaces, pysearch facilitates efficient code block matching, refactoring, and quality assessment, ensuring engineers can quickly find and understand relevant code snippets across their projects.

Key Features

01Supports multiple match types: Regex, AST structural, and lightweight semantic search
02Offers a highly customizable search experience with extensive filtering options
03Provides both command-line interface (CLI) and programmable Python API interfaces
04Context-aware results, returning matched code with configurable surrounding lines
050 GitHub stars
06Optimized for project-wide search with efficient indexing and caching for large codebases

Use Cases

01Aid in refactoring and code analysis by locating usages of specific functions or patterns
02Improve code quality and identify patterns like potential security issues or error handling
03Perform code navigation and discovery, such as finding all function or class definitions