Skip to main content

Find text in files

Project description


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.


Works on Python 3.7+

pip install pyfindtext


import pyfindtext

result = pyfindtext.find(directory=/path/to/dir, text=search_string)
for x in result:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyfindtext, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyfindtext-0.0.2.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page