No project description provided
Project description
findme

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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file find_patterns-1.0.4.tar.gz.
File metadata
- Download URL: find_patterns-1.0.4.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
123b01c560649417464759c13809653704ec633b0d897f95d48807efa8415905
|
|
| MD5 |
25b95304e47c189e91047da93506a21f
|
|
| BLAKE2b-256 |
8ef7b09412cb42aec563aea53ec7b2213b90d4a61c484918ae1625a48a19722e
|
File details
Details for the file find_patterns-1.0.4-py3-none-any.whl.
File metadata
- Download URL: find_patterns-1.0.4-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbd52e9b5ea6f8a0566e5e17c46dc910e1161a8bced3c8d6a28f6dd7df14690d
|
|
| MD5 |
2447821d5feb88d75abd652c60b26371
|
|
| BLAKE2b-256 |
4496aadbbccdfff5ba62c5afbcba6873160abb5ff15936a67b6e62b525d62141
|