Download Media¶
download(
    data: Union[str, bytes, BytesIO, BufferedReader],
    filename: Optional[str] = None,
    mimetype: Optional[str] = None,
    disabled: bool = False,
    *,
    label: str = "Download"
) -> Html
Show a download button for a url, bytes, or file-like object.
| PARAMETER | DESCRIPTION | 
|---|---|
| data | The data to download. Can be a string (interpreted as a URL), bytes, or a file opened in binary mode. 
                  
                    TYPE:
                       | 
| filename | The name of the file to download. If not provided, the name will be guessed from the data. 
                  
                    TYPE:
                       | 
| mimetype | The mimetype of the file to download, for example, (e.g. "text/csv", "image/png"). If not provided, the mimetype will be guessed from the filename. 
                  
                    TYPE:
                       | 
| disabled | Whether to disable the download button. 
                  
                    TYPE:
                       | 
| label | The label of the download button. 
                  
                    TYPE:
                       | 
| RETURNS | DESCRIPTION | 
|---|---|
| Html | An  |