Skip to main content
The SDK reads and writes sandbox files through the files module. The read example first writes a test file to /tmp/test-file, then reads it back.
Install the SDK, or the CLI for ppio commands, and set the PPIO_API_KEY and PPIO_DOMAIN environment variables before running these examples. See Quickstart and Install and authenticate.

Read a file

Call files.read() to read a file from the sandbox filesystem.

Write a single file

Call files.write() to write a single file to the sandbox filesystem.

Write multiple files

files.write() also writes several files in one call. Pass a list of path and data pairs.
Last modified on November 19, 2026