SearchMaster is a Python library that helps you search for files with a specified name across all available drives on your system.
Project description
SearchMaster
is a Python library that helps you search for files with a specified name across all available drives on your system. Whether you're looking for a specific document, image, or any other file type, SearchMaster
can help you locate it quickly and efficiently.
Table of Contents
Features
- Cross-Drive Search: Searches across all mounted drives on your system, ensuring comprehensive file discovery.
- Efficient File Locating: Uses optimized search algorithms to quickly locate files, even in systems with vast amounts of data.
- User-Friendly Output: Provides clear and concise output, listing the full paths of the located files and the total number of matches found.
- Customizable Search Parameters: Allows you to specify the file name or pattern you are looking for, making it versatile for different search needs.
- Error Handling: Includes robust error handling to manage issues like inaccessible directories or read permissions.
Demo
!
Badges
About Me 🚀
👋 Hi there! I'm Deepanshu, a passionate software developer with a broad range of skills in various programming languages and technologies. I thrive on solving complex problems, building efficient solutions, and continuously learning and growing in the tech world.
Requirements
- Python 3.x
psutil
library
Installation
-
Clone the repository:
git clone https://github.com/deepanshu414/find_all.git
-
You can install SearchMaster using pip:
pip install SearchMaster
Usage/Examples
Here's how to use the SearchMaster
library to search for a file named example.txt
:
# Importing search functions from the SearchMaster module
from SearchMaster import searchp, searchl
def main():
# Perform a search using the `searchp` function and print each result one by one.
# This function is useful for immediate feedback or incremental output.
# Replace "example.txt" with the actual search query or file name.
searchp("example.txt")
# Perform a search using the `searchl` function and obtain the results as a list.
# This function is useful for scenarios where results need to be processed or manipulated further.
# Replace "example.txt" with the actual search query or file name.
results = searchl("example.txt")
# Print the list of results returned by `searchl`.
# This allows you to see all results at once after the search is completed.
print(results)
# Check if the script is being run directly (not imported as a module).
# If true, execute the `main()` function to start the program.
if __name__ == "__main__":
main()
🔗 Links
Support
For support, email deepanshuantil4113@gmail.com
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
Built Distribution
File details
Details for the file SearchMaster-1.1.2.tar.gz
.
File metadata
- Download URL: SearchMaster-1.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3842708a20cc7a46fb243611bf5b5dad5e916b429d2f642527e19174b12f3d |
|
MD5 | 7ef95300fa134bf8abf4f66288cb92e6 |
|
BLAKE2b-256 | cc8e70063f738e56bf38d0e4885ca9e36da4377712d7e2275b6e12fb6af010b4 |
File details
Details for the file SearchMaster-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: SearchMaster-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dddc65f50d72ca3c0ca23b39252e2514c1248019987d25ed0179fcc74d96afbd |
|
MD5 | 807c4cc9c27bb1b3965f19f856788faa |
|
BLAKE2b-256 | bd836950a8060dfb20697f22368bcc66000d7e709cbd2c4c682d9cffc949288b |