Documentation Index
Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
from gravixlayer import GravixLayer
client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")
# Create a file in the runtime so we have something to download
runtime.file.write("/workspace/report.csv", "id,name\n1,alpha\n2,beta\n")
# Download file as raw bytes
content = runtime.file.download_file("/workspace/report.csv")
with open("./report.csv", "wb") as f:
f.write(content)
runtime.kill()
Parameters
| Parameter | Type | Required | Description |
|---|
path | string | Yes | File path inside the runtime |
Response
Returns raw bytes. Write directly to a local file.