Skip to content

lagliam/pyfindtext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyfindtext

Coverage Status Build Status PyPI

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)

About

Find a string of text from a folder full of files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages