Find text in files
Project description
pyfindtext
Find a string of text in any file located in a directory.
Searches through multiple files that are in a directory and returns the file , line number, and a print out of the row where the text was found.
In the case of multiple hits, a list of lists is returned.
Installation
Works on Python 3.7+
pip install pyfindtext
Usage
import pyfindtext
result = pyfindtext.find(directory=/path/to/dir, text=search_string)
for x in result:
print(x)
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
pyfindtext-0.0.2.tar.gz
(1.9 kB
view details)
File details
Details for the file pyfindtext-0.0.2.tar.gz
.
File metadata
- Download URL: pyfindtext-0.0.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
409bc1ed72f8af6f5f9d44c066acc7d00aaf3472c45936237e366756e51a7dd1
|
|
MD5 |
b186a62af30ff95f9f5d710c48f03e88
|
|
BLAKE2b-256 |
f1748abaeb4de05f376beeaa0cfc6c06cef0c2101442443123cdaab75b25f497
|