io
IO functions
TIP
Note that the documentation is automatically generated from envd/api folder in tensorchord/envd repo. Please update the python file there instead of directly editing file inside envd-docs repo.
copy
python
def copy(host_path: str, envd_path: str)
Copy from host path to container path (build time)
Arguments:
host_path
str - source path in the host machineenvd_path
str - destination path in the envd container
http
python
def http(url: str, checksum: Optional[str], filename: Optional[str])
Download file with HTTP to /home/envd/extra_source
Arguments:
url
str - URLchecksum
Optional[str] - checksum for the downloaded filefilename
Optional[str] - rewrite the filename