Quickstart#
Installation#
You can easily install PyBox using pip:
PyBox supports two types of Python sandbox environments: remote and local.
- Remote Sandbox: Requires access to a running Enterprise Gateway instance.
-
Local Sandbox: Requires additional dependencies, which can be installed with the following command:
I recommend start from local sandbox and migrate to the remote sandbox when you are ready.
Spawning Local Sandboxes#
To spawn local sandboxes, first create a PyBoxManager
instance:
With Context Manager#
Then, use a context manager to spawn and interact with a local sandbox:
It's recommended to use a context manager to ensure that the sandbox is properly cleaned up after use.