Skip to main content

No project description provided

Project description

findme Pipeline Coverage

Lightweight python based shell utility for finding files on disk using regex.

Why?

The bash find command has a --regex option, which works great for one-off searches.
However, I didn't have a good way to remember the dozen or so patterns I was searching for daily, and then quickly compose them into a find --regex call.

This tool is meant to streamline the process of remembering regex patterns, so you can search for them faster.

Installation

Use pip to install the find-patterns python package: pip install find-patterns

This will install a shell script findme as well as the python package find_patterns.

Usage

Add a pattern to locate all python files on disk.
findme --add py --pattern "\.py$"

Add a pattern to locate all c++ template files
findme --add templates --pattern "\.(inl|\[ht]cc|\[ht]pp)$"

Add a pattern to locate all files named "activate". --files-only is needed, since the file has no extension to match against.
findme --add activate --pattern "activate$" --files-only

Search for all c++ template files inside the given directory.
findme templates ./project_dir/include

Search for maya files and perform other operations with the filepaths.
findme maya | wc -l | ...

Remove the alias we previously created for python files.
findme --remove py

List all aliases that are assigned.
findme --list

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

find_patterns-1.0.4.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

find_patterns-1.0.4-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page