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.
WARNING
Enable v1 by adding # syntax=v1 to the 1st line of your envd file.
v1 is experimental and may change in the future. Make sure to freeze the envd version for online CI/CD.
copy
python
def copy(host_path: str, envd_path: str)
Copy from host path to container path (build time)
Arguments:
host_pathstr - source path in the host machineenvd_pathstr - 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:
urlstr - URLchecksumOptional[str] - checksum for the downloaded filefilenameOptional[str] - rewrite the filename