Skip to main content
Muna supports defining custom sandboxes that can be used to reconstruct your Python environment before compiling your function.
Sandboxes are very much experimental, and will likely see major changes, additions, and revisions in the near future.
Use the Sandbox.pip_install method to install Python packages from the PyPi registry:
model.py
We highly recommend pinning the specific versions of Python packages in use, so as to prevent incompatibilities when creating the sandbox.
Use the Sandbox.apt_install method to install Debian system packages:
model.py
Use the Sandbox.env method to define plaintext environment variables:
model.py
Muna does not yet support defining secrets. Do not provide secrets using sandbox environment variables as they are not designed for storing secrets.
Use the Sandbox.upload_file method to upload a file to a path in the sandbox:
model.py
Use the Sandbox.upload_directory method to upload a directory and all its contents to a path in the sandbox:
model.py