https://github.com/scivision/pyfindfiles
Concurrently find files containing text, or project language with codemeta.json
https://github.com/scivision/pyfindfiles
asyncio codemeta find-files find-text-in-files
Last synced: about 1 year ago
JSON representation
Concurrently find files containing text, or project language with codemeta.json
- Host: GitHub
- URL: https://github.com/scivision/pyfindfiles
- Owner: scivision
- License: mit
- Created: 2019-03-19T14:50:38.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T21:01:15.000Z (over 1 year ago)
- Last Synced: 2025-04-12T08:12:16.189Z (about 1 year ago)
- Topics: asyncio, codemeta, find-files, find-text-in-files
- Language: Python
- Homepage:
- Size: 105 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PyFindFiles

[](http://pepy.tech/project/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
```sh
pip install pyfindfiles
```
for latest development code
```sh
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.
```sh
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
---
```sh
python -m pyfindfiles.video top
```
looks under top-level directory "top" for video files (by common file extensions)