download#
- k3d.helpers.download(url)[source]#
Retrieve the file at url, save it locally and return its name.
- Parameters
url (str) – URL.
- Returns
File path.
- Return type
str
Note
If a file with a similar name already exists in the current directory, download will not overwrite the file and just return the file name.
Examples#
import k3d
import numpy as np
url = 'https://graylight-imaging.com/wp-content/themes/bootscore-child-main/img/logo/logo.svg'
filename = k3d.helpers.download(url)
"""
logo.svg
"""