Pysearch: Command-Line Search Dynamo for Python Files

In the realm of Python programming, efficiently navigating through a plethora of files is often a requisite for streamlined development. Here, the open-source project Pysearch comes to the fore, offering a command-line search tool tailored for swift local Python file exploration. With Pysearch, the power to perform varied search operations is at your fingertips, be it keyword search, regex search, or file type search. The tool doesn’t stop there; it extends its functionality to filter search results based on file size or modification time, ensuring that you hone in on exactly what you need.

Here's a brief code snippet showcasing the simplicity and efficiency of Pysearch:

# Searching all Python files containing "hello"
pysearch "hello"

# Finding all Python files modified after 2023-07-20
pysearch -t python -m "mtime > 2023-07-20"

# Locating all Python files exceeding 100 KB
pysearch -t python -s "size > 100k"

# Exporting search results to a CSV file
pysearch "hello" -o hello.csv

Deploying Pysearch is a breeze. A simple pip install command gets Pysearch ready on your machine, post which, launching your searches becomes as simple as invoking a command.

# Installing pysearch
pip install pysearch

# Using pysearch to find files
pysearch "hello"

Additional Info:

  • Pysearch is compatible with Python 3.6 and later, making it a versatile tool for modern Python development.
  • Being a Python creation itself, Pysearch integrates seamlessly into a Python developer's toolkit.
  • Installation is simplified with pip, fostering ease of setup and use.