pysepal.sepalwidgets.file_input.FileInput#
- class pysepal.sepalwidgets.file_input.FileInput(*args, **kwargs)[source]#
Custom widget to select files from the local machine or the sepal server.
- Parameters:
initial_folder (str) – The initial folder to read files from.
root (str) – Maximum root directory that can be accessed.
sepal_client (SepalClient) – Sepal client to access the server.
Attributes
base_pathA trait for unicode strings.
clearableA boolean (True, False) trait.
current_folderA trait for unicode strings.
error_messagesAn instance of a Python list.
extensionsAn instance of a Python list.
fileA trait for unicode strings.
file_listAn instance of a Python list.
labelA trait for unicode strings.
loadingA boolean (True, False) trait.
reload_filesAn int trait.
rootA trait for unicode strings.
template_fileA trait for unicode strings.
v_modelA trait for unicode strings.
valueA trait for unicode strings.
Methods
Custom widget to select files from the local machine or the sepal server.
Load the files in the current folder.
Reset the file input widget.
Select a file from the list.
- FileInput.__init__(initial_folder='', root='', sepal_client=None, **kwargs)[source]#
Custom widget to select files from the local machine or the sepal server.
- Parameters:
initial_folder (str) – The initial folder to read files from.
root (str) – Maximum root directory that can be accessed.
sepal_client (SepalClient | None) – Sepal client to access the server.