From 8c7da5a32a6959409f917fb32ba331fe5132751e Mon Sep 17 00:00:00 2001 From: ionite34 Date: Sun, 4 Dec 2022 09:36:21 +0800 Subject: Remove readme implementation details --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 06c8f66..d37d7a0 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.2.3