Skip to main content

Super Grep

GitHub stars GitHub license PyPI version

IMPORTANT: This is alpha software. If you have any version below 0.1.4, please update to 0.1.4 or later. There have been significant changes to the logic that processes the search pattern.

Super Grep is a powerful, format-agnostic search tool that allows you to search for patterns in files and directories with ease. It supports various naming conventions and provides options for controlling search depth, file content searching, and output colorization.

Features

  • Format-agnostic pattern matching (supports camelCase, snake_case, PascalCase, kebab-case, Title Case, Capitalized With Spaces, etc.)
  • Configurable search depth
  • File content searching
  • Colorized output option
  • Multi-process search for improved performance
  • Depth-controlled directory search
  • File name only search option
  • Stop on first match option
  • Option to hide directory paths in output
  • Option to show only file names with matches

Installation

You can install Super Grep using pip:

pip install super-grep

Usage

After installation, you can use the super-grep command directly from your terminal:

super-grep [OPTIONS] DIRECTORY PATTERN

Options

  • --workers NUMBER: Number of worker processes (default: CPU count)
  • --contents: Search within file contents (default: search filenames only)
  • --color: Colorize the output
  • --depth NUMBER: Depth of directory search (default: 0, search only in given directory; use -1 for unlimited depth)

Examples

  1. Search only in the given directory:

    super-grep /path/to/search "FooBar|first_name"
    
  2. Search up to 2 levels deep:

    super-grep /path/to/search "FooBar|first_name" --depth 2
    
  3. Search all subdirectories:

    super-grep /path/to/search "FooBar|first_name" --depth -1
    
  4. Search file contents up to 3 levels deep with colored output:

    super-grep /path/to/search "FooBar|first_name" --depth 3 --contents --color
    
  5. Use 8 worker processes:

    super-grep /path/to/search "FooBar|first_name" --workers 8
    
  6. Hide the directory path in the output:

    super-grep /path/to/search "getValueFromSection" -H
    
  7. Show only filenames and stop on the first match:

    super-grep /path/to/search "getValueFromSection" -H -s
    

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support the Project

If you find Super Grep useful, please consider supporting its development. See the SUPPORT.md file included in this package for more information on how you can contribute.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Supporting Super Grep

If you find Super Grep useful and would like to support its development, there are several ways you can contribute:

Financial Support

You can make a financial contribution to the project via:

Other Ways to Support

  • Star the project on GitHub
  • Report bugs or suggest features by opening issues on GitHub
  • Contribute code by submitting pull requests
  • Spread the word about Super Grep to your colleagues and friends

Your support, in any form, is greatly appreciated and helps to ensure the continued development and maintenance of Super Grep. Thank you!

Metadata

Release files for super-grep 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for super-grep 0.1.9
File Size Uploaded Provenance
super_grep-0.1.9.tar.gz 7.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for super-grep 0.1.9
File Interpreter ABI Platform
super_grep-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / super_grep-0.1.9.tar.gz

Download URL super_grep-0.1.9.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1c7ade9960e98e1ec14e3f7595df0ad2ff643ed912c5405692bdc7d7b4ad53c3
BLAKE2b-256 checksum
How to use checksums
4dbb8beb09387201cc6640819720e077b47efdfcc42815c0c40326baebce8b1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / super_grep-0.1.9-py3-none-any.whl

Download URL super_grep-0.1.9-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7514a212bb5c75fed414b430730e2bed4ca9a8a5914e2008cdd8f9f18690bad6
BLAKE2b-256 checksum
How to use checksums
4862de35b25388aa65d8cd7d1f1e3432401f0be51f8125b870c6d432952512e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Security for super-grep 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page