Pseek is a Python library to search files, folders, and text
Project description
Pseek
Overview
A powerful command-line tool for searching files, directories, and content inside files efficiently. The tool supports searching by name, content, extensions, and more with advanced filtering options.
Features
- Search in file & folder names
- Search inside file contents
- Highlight matches in terminal output
- Optimized for speed with ThreadPoolExecutor
- Cross-platform (Linux, macOS, Windows)
Installation
1️⃣ Install via pip (Recommended)
pip install pseek
2️⃣ Install from source
git clone https://github.com/ArianN8610/pysearch.git
cd pseek
pip install click==8.1.8
Usage
Run the command with a search query:
pseek <query> [options]
Examples
Search for a keyword in file & folder names
pseek "my_keyword" --path /path/to/search --file --directory
Search inside file contents
pseek "error" --path /var/logs --content
Search only in specific file types
pseek "TODO" --path ./projects --ext py --ext txt
Search by regex
pseek "error\d+" --regex
Command Options
| Option | Description |
|---|---|
--path |
Base directory to search in (default: current directory .) |
--file |
Search only in file names |
--directory |
Search only in directory names |
--content |
Search inside file contents |
--ext, --exclude-ext |
Filter by file extension (e.g., .txt, .log) |
--case-sensitive |
Make the search case-sensitive |
--regex |
Use regular expression for searching |
--include, --exclude |
Limit search results to specific set of directories or files |
--word |
Match the whole word only |
--max-size, --min-size |
Specify maximum and minimum sizes for files and directories |
--full-path |
Display full path of files and directories |
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
pseek-2.1.1.tar.gz
(6.5 kB
view details)
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
pseek-2.1.1-py3-none-any.whl
(8.3 kB
view details)
File details
Details for the file pseek-2.1.1.tar.gz.
File metadata
- Download URL: pseek-2.1.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3689cbab8e6cd11d52eb8417cf88f53cd6d240c1adb9005327962adce35a8a28
|
|
| MD5 |
921e6960f820b956121cf12c5e37b075
|
|
| BLAKE2b-256 |
695b4af56ffbf75b4c5a5a005209369daa0f5f6656e65aae1397a61a01edf8d1
|
File details
Details for the file pseek-2.1.1-py3-none-any.whl.
File metadata
- Download URL: pseek-2.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
231d74f68b8c73e4b1b6cc0c93e1fa62c4734aa0d880e505f71a4c08d0893b2b
|
|
| MD5 |
d27b0b73b377a83e31adfbf953da6f43
|
|
| BLAKE2b-256 |
a124090ebcce35509576014ece43c5fad5fda3c589512bb6643955409b740cd5
|