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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text_file_search_tool_urmila-0.1.0.tar.gz.
File metadata
- Download URL: text_file_search_tool_urmila-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c33f5a6f6fc0769bbd4cb4e24720eee6a828972b40581a1c94412d9864e567
|
|
| MD5 |
2b7e39203b943d10919ee1cabcd85437
|
|
| BLAKE2b-256 |
aefd31bd6b5a7370f34f40d4e6712a17f9a2e16de2872b7eb09593654dbc2a34
|
File details
Details for the file text_file_search_tool_urmila-0.1.0-py3-none-any.whl.
File metadata
- Download URL: text_file_search_tool_urmila-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c0f1993189c4272ee1b6c394f92c6e3948d7b27e6b2c1888471e7be89720de7
|
|
| MD5 |
4159df3405124d3d4e0ddce1dab07826
|
|
| BLAKE2b-256 |
bed0f6142e559bca1756a2c294cb52d9c3fc6fa5c8736f5205c295636b2ef97c
|