Concurrent, pipelined text and binary file searching via pure Python, cross-platform.
Project description
PyFindFiles
Find files (text or binary) containing text or patterns efficiently with Python, cross-platform. Default is to only search files smaller than 10 MBytes. Uses pipelining and asyncio to speed up operations.
Install
Normally install by
pip install pyfindfiles
for latest development code
git clone https://github.com/scivision/pyfindfiles
pip install -e pyfindfiles
Usage
findtext
looks for strings inside text or binary files, and reports filename text is found in.
-v
: filename, line number, and text found-t
: search for files newer than date, or between dates if two dates given.
python -m pyfindfiles.text Pattern "*.ext" root
Pattern : text to search for
"*.ext" : file extension(s) to search for
root : top-level directory to search under
python -m pyfindfiles.video top
looks under top-level directory "top" for video files (by common file extensions)
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 pyfindfiles-1.6.0.tar.gz
.
File metadata
- Download URL: pyfindfiles-1.6.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0073ac02c432e79556ab6abb812015a0b05f6787aa8ea299c8677538d6178d05 |
|
MD5 | 7f39c6a569c8c678a0b2ad436465e781 |
|
BLAKE2b-256 | 15014b068c7098fb171aa76d42c07ea1d33c8a85387b993ffcbf3ce77afeb71c |
File details
Details for the file pyfindfiles-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: pyfindfiles-1.6.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06fc9cc609fdc46db3417e0930db2c28b8c40ef9bb90819332c8acba1356e192 |
|
MD5 | f979c2ea839bc1e162c6176be7a92b0e |
|
BLAKE2b-256 | f322a511904eff9398fe755634cd140085fe5500e98c0f314a03b8b669488cd4 |