Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FileBrowse-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FileBrowse-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for FileBrowse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ee22fbb5f35176d40fa0a40a8abed2a83e0cb4f214e29489aeac4e5a88e1b5f
MD5 e1a6b7f4355c736d5b6da80f1825292f
BLAKE2b-256 04ebfbc7f8f90333cdd502ca24eb7c501590996a03e2dc5f09985032c0646049

See more details on using hashes here.

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

Hashes for FileBrowse-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca76654b9e218bf1ec7094778ceee3fbd01c36dfa2cb965d25941f02aeedd2b6
MD5 506e059fd2e848cae9c9d8cbc4a01957
BLAKE2b-256 77e34936d133b542769fcb6d0226ffb75c784de191d98c5fb2b4f6e7ab8b0bd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page