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.
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
Install dash-server-file-browser from PyPI using pip:
pip install dash-server-file-browser
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.
Contributions are welcome! If you encounter any issues or have feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.