from e2b import Sandbox
sbx = Sandbox.create()
# Read local file relative to the current working directory
with open("local/file/a", "rb") as file:
# Upload file to the sandbox to absolute path '/home/user/my-file-a'
sbx.files.write("/home/user/my-file-a", file)
with open("local/file/b", "rb") as file:
# Upload file to the sandbox to absolute path '/home/user/my-file-b'
sbx.files.write("/home/user/my-file-b", file)