A simple library to browse and select files without creating a GUI.
Project description
Python File Browser
filebrowse is a simple library to browse and select files without creating GUIs using either PyQt5 or Tkinter. filebrowse uses PyQT but defaults to Tkinter if not installed.
Features
- Provides a function
browse()that opens a file dialog for selecting a file. - Uses PyQt5 if available, otherwise falls back to Tkinter.
Requirements
- PyQt5 or Tkinter must be installed.
Installation
Clone the repository or download the pyfilebrowser.py file and include it in your project.
Usage
To use this library, import it and call the browse() function:
import filebrowse as fb
file_path_pyqt = browse()
print(f"Selected file using PyQt5: {file_path_pyqt}")
file_path_tk = browse('Tkinter')
print(f"Selected file using Tkinter: {file_path_tk}")
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Jatin Gera
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 FileBrowse-0.1.1.tar.gz.
File metadata
- Download URL: FileBrowse-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee22fbb5f35176d40fa0a40a8abed2a83e0cb4f214e29489aeac4e5a88e1b5f
|
|
| MD5 |
e1a6b7f4355c736d5b6da80f1825292f
|
|
| BLAKE2b-256 |
04ebfbc7f8f90333cdd502ca24eb7c501590996a03e2dc5f09985032c0646049
|
File details
Details for the file FileBrowse-0.1.1-py3-none-any.whl.
File metadata
- Download URL: FileBrowse-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca76654b9e218bf1ec7094778ceee3fbd01c36dfa2cb965d25941f02aeedd2b6
|
|
| MD5 |
506e059fd2e848cae9c9d8cbc4a01957
|
|
| BLAKE2b-256 |
77e34936d133b542769fcb6d0226ffb75c784de191d98c5fb2b4f6e7ab8b0bd5
|