A powerful, format-agnostic search tool
Project description
Super Grep
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
- Multi-processing for improved performance
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
-
Search only in the given directory:
super-grep /path/to/search "FooBar|first_name"
-
Search up to 2 levels deep:
super-grep /path/to/search "FooBar|first_name" --depth 2
-
Search all subdirectories:
super-grep /path/to/search "FooBar|first_name" --depth -1
-
Search file contents up to 3 levels deep with colored output:
super-grep /path/to/search "FooBar|first_name" --depth 3 --contents --color
-
Use 8 worker processes:
super-grep /path/to/search "FooBar|first_name" --workers 8
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.
- PayPal: Donate via PayPal
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:
- PayPal: Donate via PayPal
- GitHub Sponsors: Sponsor on GitHub
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file super_grep-0.1.1.tar.gz
.
File metadata
- Download URL: super_grep-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef12b14de83c7db1167f1a8430587618263361fdbd3e2b7d25620a14b2d4a57 |
|
MD5 | b1e420a44839e687a42a7eddf51bd47c |
|
BLAKE2b-256 | c8481486ffec9920c273bc65fa41305c0fed15a01fde4b5a4353a3bbd90a1dce |
File details
Details for the file super_grep-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: super_grep-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f613058755b358004347979aac8d73395ec8a265d62a7bd9a6aa31c36b16b46 |
|
MD5 | 6868b38d111edd866871d6830f859f7f |
|
BLAKE2b-256 | 4a180ce92cf1b722ad174db8deae802cf2439fdf6e756973b1ae5fae5042b16e |