A tkinter app to search files based on a pattern
Project description
File Search TK
Simple Tkinter UI that:
- Lists files from a folder returned by an external
fetch_logsscript given a query. - Shows selected file content.
- Highlights occurrences of the same query within the text.
Requirements
- Python 3.9+
- A script or executable named
fetch_logsresolvable inPATHthat takes a single argument (query) and prints a directory path to stdout.
Install
If using Poetry:
poetry install
Or via pip:
pip install -e .
Run
Using the installed console script:
file-search-tk
Or directly:
python -m file_search_tk.app
Notes
- The UI calls
fetch_logs <query>in a background thread. The command must return a valid existing directory path on stdout and exit with code 0. Any stderr or non-zero exit code is treated as an error. - File list shows only regular files at the top level of the returned directory, sorted by filename.
- Text area highlights case-insensitive matches of the query.
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
file_search_tk-0.1.7.tar.gz
(11.3 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
File details
Details for the file file_search_tk-0.1.7.tar.gz.
File metadata
- Download URL: file_search_tk-0.1.7.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/6.1.0-37-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a790e5dcf0e8944ab0d50623dab0a2f9df7200f5c62593fc515f2d43a52b351
|
|
| MD5 |
143bfe7ec4ea212cbbb0964aa64bf60d
|
|
| BLAKE2b-256 |
c004ddfc6f98ccce9e96b9742b72efdf8c517c6e5aa268f8eaa855a15f3ddfe4
|
File details
Details for the file file_search_tk-0.1.7-py3-none-any.whl.
File metadata
- Download URL: file_search_tk-0.1.7-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/6.1.0-37-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5997b66cbc1194369bf77a72489d80e206a4df394007860b69aaf11c5229efe6
|
|
| MD5 |
aca34bc6a5c822e89268911c8aeca21b
|
|
| BLAKE2b-256 |
cce2c87ac9d7e01c85df0fd13034ebc3b83c618bcafbed8e9d588e2cc5cb3fd2
|