diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -79,18 +79,12 @@ The following options for the memory file system are configurable as options in * `files_timeout` Maximum time in seconds for output file parsing and encoding. * `files_pattern` Glob pattern to match files within `output`. -The sandboxed code execution will start with a working directory of `home`, and a visible folder `output`. The user has read/write access to any path under `home`. +The sandboxed code execution will start with a writeable working directory of `home`. Any files written within the subfolder `output` will be parsed for output. ``` /home |- output ``` -Files written to the `output` subfolder will be parsed and returned as a list of `FileAttachment` objects in `EvalResult.files` from the `python3` function. - -To send files to snekbox, it can be included as the `files` parameter of `python3`. - -Within the `/eval` route, files are attached or returned under the `files` key. - ### Gunicorn [Gunicorn settings] can be found in [`gunicorn.conf.py`]. In the default configuration, the worker count, the bind address, and the WSGI app URI are likely the only things of any interest. Since it uses the default synchronous workers, the [worker count] effectively determines how many concurrent code evaluations can be performed. |