Skip to main content

A tool to search for text inside files efficiently

Project description

Text File Search Tool

A simple and efficient Python CLI tool to search for keywords inside text files.


Features

  • Search keyword in a text file
  • Case-insensitive search
  • Displays line numbers
  • Counts total matches
  • Easy to use command-line interface

Installation

Install from PyPI:

pip install text-file-search-tool-urmila


Usage

Run the tool from terminal:

text_file_search_tool-urmila

Then enter:

Enter file name: sample.txt Enter keyword to search: python


Example

sample.txt

Python is easy Python is powerful

Output

Matches found:

Line 1: Python is easy Line 3: Python is powerful

Total matches: 2


Project Structure

text_file_search_tool/ │ ├── text_file_search_tool/ │ ├── init.py │ ├── cli.py │ ├── main.py │ ├── pyproject.toml ├── README.md ├── requirements.txt


Technologies Used

  • Python
  • argparse (for CLI)

Author

Urmila Thalal


Project details


Download files

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

Source Distribution

text_file_search_tool_urmila-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text_file_search_tool_urmila-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file text_file_search_tool_urmila-0.1.0.tar.gz.

File metadata

File hashes

Hashes for text_file_search_tool_urmila-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a6c33f5a6f6fc0769bbd4cb4e24720eee6a828972b40581a1c94412d9864e567
MD5 2b7e39203b943d10919ee1cabcd85437
BLAKE2b-256 aefd31bd6b5a7370f34f40d4e6712a17f9a2e16de2872b7eb09593654dbc2a34

See more details on using hashes here.

File details

Details for the file text_file_search_tool_urmila-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for text_file_search_tool_urmila-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0f1993189c4272ee1b6c394f92c6e3948d7b27e6b2c1888471e7be89720de7
MD5 4159df3405124d3d4e0ddce1dab07826
BLAKE2b-256 bed0f6142e559bca1756a2c294cb52d9c3fc6fa5c8736f5205c295636b2ef97c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page