Skip to content

Zoraiyo/dash-server-file-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dash Server File Browser

License

dash-server-file-browser provides a simple AIO component for Dash applications to browse directories and files on the server. The componennt is implemented as a Modal component of dash-bootstrap-components.

dash-server-file-browser-demo

Features

The current version of dash-server-file-browser supports the following features:

  • Browsing the configured "base" directory and all its subdirectories
    • Users cannot navigate outside the defined "base" directory
  • Selecting the current directory as component "output" via a dcc.Store component
  • Two navigation buttons:
    • "Up" button to navigate to the parent directory
    • "Home" button to navigate to the base directory
  • Option to display the current path as either a relative or absolute path

Installation

Install dash-server-file-browser from PyPI using pip:

pip install dash-server-file-browser

Usage

demo.py provides a simple example of how to use the FileBrowserAIO component in a Dash application. It demonstrates how to setup the component with the necessary callbacks to open the component and handle the selected directory.

Contributing

Contributions are welcome! If you encounter any issues or have feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.