code-sandboxes 1.9.37__tar.gz → 1.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- code_sandboxes-1.9.37/.github/workflows/build.yml → code_sandboxes-1.10.0/.github/workflows/build.yaml +1 -1
- code_sandboxes-1.9.37/.github/workflows/py-code-style.yml → code_sandboxes-1.10.0/.github/workflows/py-code-style.yaml +5 -5
- code_sandboxes-1.9.37/.github/workflows/py-tests.yml → code_sandboxes-1.10.0/.github/workflows/py-tests.yaml +5 -5
- code_sandboxes-1.9.37/.github/workflows/py-typing.yml → code_sandboxes-1.10.0/.github/workflows/py-typing.yaml +5 -5
- code_sandboxes-1.10.0/.github/workflows/release.yaml +105 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/CHANGELOG.md +65 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/PKG-INFO +4 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/README.md +1 -0
- code_sandboxes-1.10.0/RELEASE.md +35 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/__init__.py +33 -18
- code_sandboxes-1.10.0/code_sandboxes/__version__.py +1 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/base.py +35 -26
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/cli.py +1 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/client.py +109 -15
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/adapters/datalayer.py +3 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/adapters/daytona.py +2 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/adapters/e2b.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/adapters/modal.py +5 -5
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/contract.py +5 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/doctor/datalayer_sandbox.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/manage.py +32 -13
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/models.py +29 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/provider_ingress.py +1 -1
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/__init__.py +14 -0
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/cloudflare/__init__.py +24 -0
- code_sandboxes-1.9.37/code_sandboxes/cloudflare_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/cloudflare/cloudflare.py +4 -4
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/coreweave/__init__.py +22 -0
- code_sandboxes-1.9.37/code_sandboxes/coreweave_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/coreweave/coreweave.py +3 -3
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/datalayer/__init__.py +18 -0
- code_sandboxes-1.9.37/code_sandboxes/datalayer_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/datalayer/datalayer.py +6 -6
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/daytona/__init__.py +20 -0
- code_sandboxes-1.9.37/code_sandboxes/daytona_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/daytona/daytona.py +5 -5
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/docker/__init__.py +22 -0
- code_sandboxes-1.9.37/code_sandboxes/docker_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/docker/docker.py +5 -5
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/e2b/__init__.py +22 -0
- code_sandboxes-1.9.37/code_sandboxes/e2b_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/e2b/e2b.py +5 -5
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/eval/__init__.py +16 -0
- code_sandboxes-1.9.37/code_sandboxes/eval_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/eval/eval.py +5 -5
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/google_colab/__init__.py +18 -0
- code_sandboxes-1.9.37/code_sandboxes/google_colab_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/google_colab/google_colab.py +11 -7
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/jupyter_server/__init__.py +26 -0
- code_sandboxes-1.9.37/code_sandboxes/jupyter_server_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/jupyter_server/jupyter_server.py +4 -4
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/kaggle/__init__.py +18 -0
- code_sandboxes-1.9.37/code_sandboxes/kaggle_execute.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/kaggle/execute.py +1 -1
- code_sandboxes-1.9.37/code_sandboxes/kaggle_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/kaggle/kaggle.py +10 -9
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/marimo/__init__.py +24 -0
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/marimo/cells.py +261 -0
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/marimo/marimo.py +368 -0
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/marimo/reactive.py +77 -0
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/marimo/reactive_kernel.py +159 -0
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/modal/__init__.py +22 -0
- code_sandboxes-1.9.37/code_sandboxes/modal_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/modal/modal.py +6 -6
- code_sandboxes-1.10.0/code_sandboxes/sandboxes/monty/__init__.py +18 -0
- code_sandboxes-1.9.37/code_sandboxes/monty_sandbox.py → code_sandboxes-1.10.0/code_sandboxes/sandboxes/monty/monty.py +3 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/contribute/index.mdx +5 -5
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/environments/contract.mdx +3 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/index.mdx +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/datalayer.mdx +3 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/docker.mdx +3 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/eval.mdx +3 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/index.mdx +8 -6
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/jupyter-server.mdx +3 -2
- code_sandboxes-1.10.0/docs/docs/providers/marimo.mdx +237 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/monty.mdx +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docusaurus.config.js +6 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/package.json +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/pyproject.toml +8 -7
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/conftest.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_a_datalayer_sandbox_can_be_interrupted.py +3 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_cli_exec.py +2 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_client_contents.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_client_files.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_cloudflare.py +9 -9
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_contents_contract.py +4 -4
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_coreweave.py +5 -5
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_datalayer_sandbox.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_daytona.py +7 -7
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_e2b.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_bases.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_conformance.py +2 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_contract.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_datalayer_builder.py +2 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_daytona_builder.py +4 -4
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_doctor.py +4 -4
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_e2b_builder.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_modal_builder.py +3 -3
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_eval.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_every_variant_has_a_real_interrupt.py +22 -19
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_factory.py +8 -8
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_google_colab.py +7 -4
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_integration.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_jupyter_ingress.py +3 -5
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_jupyter_server.py +9 -8
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_jupyter_server_streaming.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_kaggle.py +11 -6
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_kaggle_execute.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_kaggle_live.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_kaggle_session.py +2 -2
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_kernel_client_compatibility.py +1 -1
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_lifecycle_vocabulary.py +8 -8
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_manage.py +1 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_manage_datalayer.py +3 -1
- code_sandboxes-1.10.0/tests/test_marimo_cells.py +140 -0
- code_sandboxes-1.10.0/tests/test_marimo_reactive_kernel.py +141 -0
- code_sandboxes-1.10.0/tests/test_marimo_sandbox.py +317 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_modal_google_colab_sandbox.py +9 -9
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_modal_session.py +2 -2
- code_sandboxes-1.9.37/code_sandboxes/__version__.py +0 -6
- /code_sandboxes-1.9.37/.github/workflows/environments-live.yml → /code_sandboxes-1.10.0/.github/workflows/environments-live.yaml +0 -0
- /code_sandboxes-1.9.37/.github/workflows/reusable-python.yml → /code_sandboxes-1.10.0/.github/workflows/reusable-python.yaml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/.gitignore +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/.licenserc.yaml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/.pre-commit-config.yaml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/.vscode/settings.json +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/Dockerfile +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/LICENSE +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/Makefile +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/bridge_mount.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/builds.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/commands.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/console.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/contents.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/__init__.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/__main__.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/accounts.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/adapters/__init__.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/adapters/managed.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/attest.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/bases.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/breaker.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/build_secrets.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/builders.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/canonical.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/conformance.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/constraints/sandbox-contract-v1.txt +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/constraints/wheelhouse/README.md +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/constraints/wheelhouse/jupyter_server-2.21.0+datalayer.1-py3-none-any.whl +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/doctor/__init__.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/doctor/build.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/doctor/report.schema.json +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/errors.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/files.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/image_import.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/lifecycle.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/policy.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/redact.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/resolve.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/resolve_conda.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/schema.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/environments/spec.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/exceptions.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/filesystem.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/interfaces.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/jupyter_ingress.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/lifecycle.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/code_sandboxes/providers.py +0 -0
- /code_sandboxes-1.9.37/code_sandboxes/google_colab.py → /code_sandboxes-1.10.0/code_sandboxes/sandboxes/google_colab/client.py +0 -0
- /code_sandboxes-1.9.37/code_sandboxes/kaggle.py → /code_sandboxes-1.10.0/code_sandboxes/sandboxes/kaggle/client.py +0 -0
- /code_sandboxes-1.9.37/code_sandboxes/kaggle_live.py → /code_sandboxes-1.10.0/code_sandboxes/sandboxes/kaggle/live.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docker/Dockerfile +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/.gitignore +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/LICENSE +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/Makefile +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/README.md +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/babel.config.js +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/api-reference/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/api-reference/index.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/cli/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/cli/index.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/contribute/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/environments/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/environments/index.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/environments/specification.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/environments/spike-2026-09.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/examples/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/examples/index.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/guide/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/guide/index.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/install/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/install/index.mdx +0 -0
- /code_sandboxes-1.9.37/docs/docs/provider-ingress.mdx → /code_sandboxes-1.10.0/docs/docs/provider-ingress/index.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/_category_.yml +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/cloudflare.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/coreweave.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/daytona.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/e2b.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/google-colab.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/kaggle.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/docs/providers/modal.mdx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/sidebars.js +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/components/HomepageRow1.js +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/components/HomepageRow1.module.css +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/components/HomepageRow2.js +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/components/HomepageRow2.module.css +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/components/HomepageRow3.js +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/components/HomepageRow3.module.css +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/css/custom.css +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/pages/index.module.css +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/pages/markdown-page.md +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/theme/CustomDocItem.tsx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/src/theme/IconsTitle.tsx +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/bricks.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/building-construction.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/cloud-sun.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/cloud.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/collaboration.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/copy-left.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/datalayer/logo.png +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/datalayer/logo.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/datalayer/personas/business.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/datalayer/personas/data-scientist.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/datalayer/personas/devops.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/datalayer/project/project-line.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/favicon.ico +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/jupyter.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/open-source.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/react-js.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/react-js2.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/ringed-planet.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/robot.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/rocket.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/shield.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/sparkles.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/streamlit.gif +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/super-hero.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/target.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/docs/static/img/thumbs-up.svg +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/README.md +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/Makefile +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/cloudflare_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/coreweave_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/datalayer_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/daytona_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/docker_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/e2b_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/eval_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/google_colab_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/jupyter_server_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/kaggle_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/modal_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/exec/monty_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/Makefile +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/cloudflare_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/coreweave_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/datalayer_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/daytona_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/docker_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/e2b_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/eval_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/google_colab_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/jupyter_server_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/kaggle_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/modal_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/examples/repl/monty_sandbox_example.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/schemas/environment-v1alpha1.json +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/__init__.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/egress_logs/buildctl-base.log +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/egress_logs/buildctl-curl.log +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/egress_logs/buildctl-pip.log +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/egress_logs/buildctl-uv.log +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/egress_logs/micromamba.log +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_bridge_mount.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_builds.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_cli_repl.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_client.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_client_outcome_error_output.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_commands_envelope.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_console.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_contents_live_matrix.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_accounts.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_attest.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_breaker.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_build_secrets.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_builders.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_canonical.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_constraints.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_cross_variant_report.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_dockerfile_source.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_egress_refusals.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_errors.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_image_import.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_lifecycle.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_live_matrix.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_managed_builders.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_organization_policy.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_redact.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_resolve.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_resolve_conda.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_spec.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_environment_spec_organization_policy.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_models.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_output_line_fidelity.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_provider_catalog_names.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_provider_ingress.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_providers.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_sandboxes.py +0 -0
- {code_sandboxes-1.9.37 → code_sandboxes-1.10.0}/tests/test_the_kill_relaunch_drill.py +0 -0
|
@@ -13,7 +13,7 @@ jobs:
|
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
15
|
python-version: ['3.11', '3.12']
|
|
16
|
-
uses: ./.github/workflows/reusable-python.
|
|
16
|
+
uses: ./.github/workflows/reusable-python.yaml
|
|
17
17
|
with:
|
|
18
18
|
python-version: ${{ matrix.python-version }}
|
|
19
19
|
install-extras: test,typing,datalayer
|
|
@@ -13,8 +13,8 @@ on:
|
|
|
13
13
|
- '.pre-commit-config.yaml'
|
|
14
14
|
- 'ruff.toml'
|
|
15
15
|
- '.ruff.toml'
|
|
16
|
-
- '.github/workflows/py-code-style.
|
|
17
|
-
- '.github/workflows/reusable-python.
|
|
16
|
+
- '.github/workflows/py-code-style.yaml'
|
|
17
|
+
- '.github/workflows/reusable-python.yaml'
|
|
18
18
|
pull_request:
|
|
19
19
|
branches:
|
|
20
20
|
- main
|
|
@@ -27,8 +27,8 @@ on:
|
|
|
27
27
|
- '.pre-commit-config.yaml'
|
|
28
28
|
- 'ruff.toml'
|
|
29
29
|
- '.ruff.toml'
|
|
30
|
-
- '.github/workflows/py-code-style.
|
|
31
|
-
- '.github/workflows/reusable-python.
|
|
30
|
+
- '.github/workflows/py-code-style.yaml'
|
|
31
|
+
- '.github/workflows/reusable-python.yaml'
|
|
32
32
|
workflow_dispatch:
|
|
33
33
|
|
|
34
34
|
concurrency:
|
|
@@ -37,7 +37,7 @@ concurrency:
|
|
|
37
37
|
|
|
38
38
|
jobs:
|
|
39
39
|
check-code-style:
|
|
40
|
-
uses: ./.github/workflows/reusable-python.
|
|
40
|
+
uses: ./.github/workflows/reusable-python.yaml
|
|
41
41
|
with:
|
|
42
42
|
python-version: '3.11'
|
|
43
43
|
extra-packages: pre-commit
|
|
@@ -11,8 +11,8 @@ on:
|
|
|
11
11
|
- 'setup.py'
|
|
12
12
|
- 'requirements*.txt'
|
|
13
13
|
- '**/*.py'
|
|
14
|
-
- '.github/workflows/py-tests.
|
|
15
|
-
- '.github/workflows/reusable-python.
|
|
14
|
+
- '.github/workflows/py-tests.yaml'
|
|
15
|
+
- '.github/workflows/reusable-python.yaml'
|
|
16
16
|
pull_request:
|
|
17
17
|
branches:
|
|
18
18
|
- main
|
|
@@ -23,8 +23,8 @@ on:
|
|
|
23
23
|
- 'setup.py'
|
|
24
24
|
- 'requirements*.txt'
|
|
25
25
|
- '**/*.py'
|
|
26
|
-
- '.github/workflows/py-tests.
|
|
27
|
-
- '.github/workflows/reusable-python.
|
|
26
|
+
- '.github/workflows/py-tests.yaml'
|
|
27
|
+
- '.github/workflows/reusable-python.yaml'
|
|
28
28
|
|
|
29
29
|
workflow_dispatch:
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
max-parallel: 1
|
|
35
35
|
matrix:
|
|
36
36
|
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
37
|
-
uses: ./.github/workflows/reusable-python.
|
|
37
|
+
uses: ./.github/workflows/reusable-python.yaml
|
|
38
38
|
with:
|
|
39
39
|
python-version: ${{ matrix.python-version }}
|
|
40
40
|
install-extras: test,datalayer
|
|
@@ -12,8 +12,8 @@ on:
|
|
|
12
12
|
- 'setup.py'
|
|
13
13
|
- 'mypy.ini'
|
|
14
14
|
- '.mypy.ini'
|
|
15
|
-
- '.github/workflows/py-typing.
|
|
16
|
-
- '.github/workflows/reusable-python.
|
|
15
|
+
- '.github/workflows/py-typing.yaml'
|
|
16
|
+
- '.github/workflows/reusable-python.yaml'
|
|
17
17
|
pull_request:
|
|
18
18
|
branches:
|
|
19
19
|
- main
|
|
@@ -25,8 +25,8 @@ on:
|
|
|
25
25
|
- 'setup.py'
|
|
26
26
|
- 'mypy.ini'
|
|
27
27
|
- '.mypy.ini'
|
|
28
|
-
- '.github/workflows/py-typing.
|
|
29
|
-
- '.github/workflows/reusable-python.
|
|
28
|
+
- '.github/workflows/py-typing.yaml'
|
|
29
|
+
- '.github/workflows/reusable-python.yaml'
|
|
30
30
|
workflow_dispatch:
|
|
31
31
|
|
|
32
32
|
concurrency:
|
|
@@ -35,7 +35,7 @@ concurrency:
|
|
|
35
35
|
|
|
36
36
|
jobs:
|
|
37
37
|
type-check:
|
|
38
|
-
uses: ./.github/workflows/reusable-python.
|
|
38
|
+
uses: ./.github/workflows/reusable-python.yaml
|
|
39
39
|
with:
|
|
40
40
|
python-version: '3.12'
|
|
41
41
|
install-extras: typing
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Copyright (c) 2023-2026 Datalayer, Inc.
|
|
2
|
+
# Distributed under the terms of the BSD 3-Clause License.
|
|
3
|
+
|
|
4
|
+
# Publishes the release a tag names to PyPI, with no stored token: PyPI
|
|
5
|
+
# trusts this workflow file (OIDC trusted publishing, through the `pypi`
|
|
6
|
+
# environment). The tag must name the version in code_sandboxes/__version__.py; a
|
|
7
|
+
# version already published is skipped. See RELEASE.md.
|
|
8
|
+
|
|
9
|
+
name: Release
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
push:
|
|
13
|
+
tags:
|
|
14
|
+
- 'v*'
|
|
15
|
+
|
|
16
|
+
concurrency:
|
|
17
|
+
group: release-${{ github.ref }}
|
|
18
|
+
cancel-in-progress: false
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
build:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
outputs:
|
|
27
|
+
python: ${{ steps.plan.outputs.python }}
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: '3.12'
|
|
34
|
+
|
|
35
|
+
- name: Check the tag names the version the package carries
|
|
36
|
+
run: |
|
|
37
|
+
set -euo pipefail
|
|
38
|
+
tag="${GITHUB_REF_NAME#v}"
|
|
39
|
+
version="$(python -c "import re;print(re.search(r'__version__\s*=\s*[\"\']([^\"\']+)', open('code_sandboxes/__version__.py').read())[1])")"
|
|
40
|
+
echo "tag=$tag version=$version"
|
|
41
|
+
test "$tag" = "$version"
|
|
42
|
+
|
|
43
|
+
- name: Find whether it is published yet
|
|
44
|
+
id: plan
|
|
45
|
+
run: |
|
|
46
|
+
set -euo pipefail
|
|
47
|
+
version="${GITHUB_REF_NAME#v}"
|
|
48
|
+
status="$(curl -sL -o /dev/null -w '%{http_code}' "https://pypi.org/pypi/code-sandboxes/$version/json")"
|
|
49
|
+
if [ "$status" = "200" ]; then
|
|
50
|
+
echo "PyPI: code-sandboxes $version is already published, skipping"
|
|
51
|
+
echo "python=" >> "$GITHUB_OUTPUT"
|
|
52
|
+
else
|
|
53
|
+
echo "PyPI: code-sandboxes $version will be published"
|
|
54
|
+
echo "python=yes" >> "$GITHUB_OUTPUT"
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
- name: Build
|
|
58
|
+
if: steps.plan.outputs.python != ''
|
|
59
|
+
run: |
|
|
60
|
+
set -euo pipefail
|
|
61
|
+
python -m pip install --upgrade pip build
|
|
62
|
+
python -m build --sdist --wheel --outdir dist .
|
|
63
|
+
ls -la dist
|
|
64
|
+
|
|
65
|
+
- uses: actions/upload-artifact@v4
|
|
66
|
+
if: steps.plan.outputs.python != ''
|
|
67
|
+
with:
|
|
68
|
+
name: python
|
|
69
|
+
path: dist/*
|
|
70
|
+
|
|
71
|
+
pypi:
|
|
72
|
+
needs: build
|
|
73
|
+
if: needs.build.outputs.python != ''
|
|
74
|
+
runs-on: ubuntu-latest
|
|
75
|
+
environment: pypi
|
|
76
|
+
permissions:
|
|
77
|
+
id-token: write
|
|
78
|
+
steps:
|
|
79
|
+
- uses: actions/download-artifact@v4
|
|
80
|
+
with:
|
|
81
|
+
name: python
|
|
82
|
+
path: dist
|
|
83
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
84
|
+
with:
|
|
85
|
+
skip-existing: true
|
|
86
|
+
|
|
87
|
+
release:
|
|
88
|
+
name: GitHub release
|
|
89
|
+
needs: [build, pypi]
|
|
90
|
+
if: always() && needs.build.result == 'success' && needs.pypi.result != 'failure'
|
|
91
|
+
runs-on: ubuntu-latest
|
|
92
|
+
permissions:
|
|
93
|
+
contents: write
|
|
94
|
+
steps:
|
|
95
|
+
- uses: actions/checkout@v4
|
|
96
|
+
with:
|
|
97
|
+
fetch-depth: 0
|
|
98
|
+
- name: Create the release with generated notes
|
|
99
|
+
run: |
|
|
100
|
+
version="${GITHUB_REF_NAME#v}"
|
|
101
|
+
gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1 && exit 0
|
|
102
|
+
gh release create "$GITHUB_REF_NAME" --title "Release $version" --generate-notes \
|
|
103
|
+
--notes "- [PyPI code-sandboxes](https://pypi.org/project/code-sandboxes/$version/)"
|
|
104
|
+
env:
|
|
105
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -8,6 +8,70 @@
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 1.10.0
|
|
12
|
+
|
|
13
|
+
- **One subpackage per provider.** Every sandbox moved under
|
|
14
|
+
`code_sandboxes.sandboxes.<provider>` — the implementation in
|
|
15
|
+
`<provider>/<provider>.py`, re-exported by the package's `__init__`, and the
|
|
16
|
+
modules only it needs beside it (Kaggle's kernel client,
|
|
17
|
+
executors and live session; Marimo's reactive graph and cells driver;
|
|
18
|
+
Google Colab's kernel client). The public names are unchanged: import them
|
|
19
|
+
from `code_sandboxes` as before. **Breaking:** the old flat module paths
|
|
20
|
+
(`code_sandboxes.datalayer_sandbox`, `code_sandboxes.marimo_sandbox`, …)
|
|
21
|
+
are gone, with no aliases; import from `code_sandboxes` or the new paths.
|
|
22
|
+
- **The Marimo kernel helper is real code.** `sandboxes/marimo/reactive_kernel.py`
|
|
23
|
+
is a typed, importable, self-contained module; what a sandbox sends to the
|
|
24
|
+
kernel is that file's own text (`reactive.KERNEL_HELPER_SOURCE` reads it
|
|
25
|
+
from the installed package). The type-checker and a new test suite
|
|
26
|
+
(`tests/test_marimo_reactive_kernel.py`) now read exactly what the kernel
|
|
27
|
+
runs: replacement, conflicts, cycles, plans, removal, re-execution keeping
|
|
28
|
+
the graph, and the stdout wire encoding.
|
|
29
|
+
- Docs: every provider page imports from its subpackage; the Marimo page
|
|
30
|
+
describes the real-code helper and points at the hosted `marimo` toolset.
|
|
31
|
+
|
|
32
|
+
## 1.9.39
|
|
33
|
+
|
|
34
|
+
- The GitHub workflow files are all `.yaml` now (`build`, `py-tests`,
|
|
35
|
+
`py-code-style`, `py-typing`, `reusable-python`, `environments-live`), the
|
|
36
|
+
spelling `release.yaml` already had; the reusable workflow's callers and
|
|
37
|
+
the contributing page follow.
|
|
38
|
+
- **Marimo reactivity through the Jupyter-shaped API** (#37). `run_code`
|
|
39
|
+
names its cell through the execution context (`Context(id=...)`; the same
|
|
40
|
+
id replaces the cell) and the result says what happened: `cell_id`, and
|
|
41
|
+
`reactions` — every cell re-run because of it, each a `Reaction` with its
|
|
42
|
+
code and its own `ExecutionResult`. `CodeSandboxClient.execute`,
|
|
43
|
+
`execute_code` and `execute_code_streaming` take `cell_id`; a reply carries
|
|
44
|
+
the reactions under `marimo` with their own Jupyter-shaped outputs;
|
|
45
|
+
`execute_interactive` emits them after the cell's own, each message tagged
|
|
46
|
+
`metadata.marimo = {cell_id, reaction}`; the stream tags every event with
|
|
47
|
+
`marimo_cell_id`. The client passes `run_cell`, `register_cell`,
|
|
48
|
+
`remove_cell`, `plan`, `graph` and `cells` through to a reactive sandbox and
|
|
49
|
+
says so with `reactive`. The `marimo_reactions` extra attribute is replaced
|
|
50
|
+
by the typed `reactions` field. Nothing changes on the wire.
|
|
51
|
+
|
|
52
|
+
## 1.9.38
|
|
53
|
+
|
|
54
|
+
- **The environments line and main are one branch again**: everything
|
|
55
|
+
released from `feat/env-custom` as 1.9.13 through 1.9.37 (custom
|
|
56
|
+
environments: resolve, build, attest, sign, the egress proxy, conda
|
|
57
|
+
artifacts, the contract's working directory) is on `main`, rebased onto
|
|
58
|
+
the marimo sandbox. The `1.9.13` entry below is what PyPI's 1.9.13 shipped;
|
|
59
|
+
main's own "1.9.13: the marimo sandbox" never reached PyPI (the version was
|
|
60
|
+
taken) and is this release instead:
|
|
61
|
+
- **`marimo` sandbox** (#34, #35): a Jupyter server sandbox whose kernel also
|
|
62
|
+
holds Marimo's dataflow graph. `run_cell(cell_id, code)` runs a cell, then
|
|
63
|
+
the cells that depend on what it defined, in dependency order; a failing
|
|
64
|
+
cell stops the reaction. `register_cell`, `remove_cell`, `plan`, `graph`
|
|
65
|
+
and `cells` expose the graph; `run_code` keeps working, each call a cell of
|
|
66
|
+
its own, with the re-run cell ids on the result as `marimo_reactions`. The
|
|
67
|
+
graph is Marimo's own (`marimo._runtime.dataflow`), installed into the
|
|
68
|
+
kernel by one execute request and asked over the Jupyter protocol; marimo
|
|
69
|
+
is pip-installed into a kernel that lacks it unless `install_marimo=False`.
|
|
70
|
+
`get_manager("marimo")` is the `jupyter-server` manager under the marimo
|
|
71
|
+
variant. The same helper source drives jupyter-react's `variant="marimo"`.
|
|
72
|
+
- Releases are cut by a `v*` tag now (`.github/workflows/release.yaml`,
|
|
73
|
+
trusted publishing); see RELEASE.md.
|
|
74
|
+
|
|
11
75
|
## 1.9.18
|
|
12
76
|
|
|
13
77
|
- **A lock no longer carries a wall clock, so the build cache can hit**
|
|
@@ -314,7 +378,7 @@
|
|
|
314
378
|
that `stop()` skipped entirely, orphaned for good. Fixed identically in
|
|
315
379
|
`daytona_sandbox.py`, `modal_sandbox.py` and `e2b_sandbox.py`.
|
|
316
380
|
- **A nightly live matrix for the three managed builders**
|
|
317
|
-
(`.github/workflows/environments-live.
|
|
381
|
+
(`.github/workflows/environments-live.yaml`, PLAN_ENV.md E2-11). Builds a
|
|
318
382
|
real artifact on each real provider from a real, hash-verified lock,
|
|
319
383
|
launches a sandbox from it, and runs the formal core tier — opening (or
|
|
320
384
|
commenting on) an issue naming the provider and the check on a genuine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: code_sandboxes
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.10.0
|
|
4
4
|
Project-URL: Home, https://github.com/datalayer/code-sandboxes
|
|
5
5
|
Author-email: Datalayer <info@datalayer.io>
|
|
6
6
|
License: BSD 3-Clause License
|
|
@@ -59,7 +59,7 @@ Requires-Dist: kaggle>=1.6; extra == 'all'
|
|
|
59
59
|
Requires-Dist: modal>=1.5.2; extra == 'all'
|
|
60
60
|
Requires-Dist: pydantic-monty; extra == 'all'
|
|
61
61
|
Provides-Extra: bridge
|
|
62
|
-
Requires-Dist: datalayer-core>=1.
|
|
62
|
+
Requires-Dist: datalayer-core>=1.2.12; extra == 'bridge'
|
|
63
63
|
Requires-Dist: fusepy>=3.0; extra == 'bridge'
|
|
64
64
|
Requires-Dist: websockets>=12; extra == 'bridge'
|
|
65
65
|
Provides-Extra: cloudflare
|
|
@@ -67,7 +67,7 @@ Requires-Dist: httpx>=0.27; extra == 'cloudflare'
|
|
|
67
67
|
Provides-Extra: coreweave
|
|
68
68
|
Requires-Dist: cwsandbox>=1.6; extra == 'coreweave'
|
|
69
69
|
Provides-Extra: datalayer
|
|
70
|
-
Requires-Dist: agent-runtimes>=1.
|
|
70
|
+
Requires-Dist: agent-runtimes>=1.3.13; extra == 'datalayer'
|
|
71
71
|
Provides-Extra: daytona
|
|
72
72
|
Requires-Dist: daytona>=0.205.1; extra == 'daytona'
|
|
73
73
|
Provides-Extra: docker
|
|
@@ -127,6 +127,7 @@ Canonical variant names:
|
|
|
127
127
|
- `google-colab`
|
|
128
128
|
- `jupyter-server`
|
|
129
129
|
- `kaggle`
|
|
130
|
+
- `marimo`
|
|
130
131
|
- `modal`
|
|
131
132
|
- `monty`
|
|
132
133
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
~ Copyright (c) 2023-2026 Datalayer, Inc.
|
|
3
|
+
~
|
|
4
|
+
~ BSD 3-Clause License
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
# Making a release
|
|
8
|
+
|
|
9
|
+
A tag releases `code-sandboxes` to PyPI, with no stored token: PyPI trusts
|
|
10
|
+
`.github/workflows/release.yaml` through OIDC (trusted publishing, GitHub
|
|
11
|
+
environment `pypi`). The version lives in `code_sandboxes/__version__.py`, which
|
|
12
|
+
hatch reads too.
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
1. Bump `__version__` on a branch and open a pull request.
|
|
17
|
+
|
|
18
|
+
1. Merge, then tag the merge commit and push the tag:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git checkout main && git pull
|
|
22
|
+
git tag vX.Y.Z
|
|
23
|
+
git push origin vX.Y.Z
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
1. The `Release` workflow checks that the tag names the version, builds the
|
|
27
|
+
wheel and the sdist, publishes them unless PyPI already has that version,
|
|
28
|
+
and creates a GitHub release with generated notes.
|
|
29
|
+
|
|
30
|
+
## Trusted publishing
|
|
31
|
+
|
|
32
|
+
PyPI project `code-sandboxes`: owner `datalayer`, repository `code-sandboxes`, workflow
|
|
33
|
+
`release.yaml`, environment `pypi`. The registry matches the repository,
|
|
34
|
+
the workflow filename and the environment exactly; renaming any of them
|
|
35
|
+
means re-registering.
|
|
@@ -14,6 +14,7 @@ sandboxes (in-process execution):
|
|
|
14
14
|
Remote sandboxes (out-of-process execution via Jupyter kernel protocol):
|
|
15
15
|
- DockerSandbox: Docker container based, good isolation
|
|
16
16
|
- JupyterServerSandbox: Jupyter Server with persistent kernel state
|
|
17
|
+
- MarimoSandbox: a Jupyter Server kernel holding Marimo's reactive cell graph
|
|
17
18
|
- DatalayerSandbox: Cloud-based Datalayer runtime, full isolation
|
|
18
19
|
- GoogleColabSandbox: Google Colab runtime, connects to an assigned kernel
|
|
19
20
|
- KaggleSandbox: Kaggle runtime, connects to an interactive notebook kernel
|
|
@@ -72,7 +73,6 @@ from .builds import (
|
|
|
72
73
|
installed_environment_contents,
|
|
73
74
|
)
|
|
74
75
|
from .client import CodeExecutionOutcome, CodeSandboxClient, execution_result_to_reply
|
|
75
|
-
from .cloudflare_sandbox import CloudflareSandbox
|
|
76
76
|
from .commands import CommandResult, ProcessHandle, SandboxCommands
|
|
77
77
|
from .console import (
|
|
78
78
|
EXIT_COMMANDS,
|
|
@@ -94,12 +94,6 @@ from .contents import (
|
|
|
94
94
|
MaterializeEntry,
|
|
95
95
|
PreparedAttachment,
|
|
96
96
|
)
|
|
97
|
-
from .coreweave_sandbox import CoreWeaveSandbox
|
|
98
|
-
from .datalayer_sandbox import DatalayerSandbox
|
|
99
|
-
from .daytona_sandbox import DaytonaSandbox
|
|
100
|
-
from .docker_sandbox import DockerSandbox
|
|
101
|
-
from .e2b_sandbox import E2BSandbox
|
|
102
|
-
from .eval_sandbox import EvalSandbox
|
|
103
97
|
from .exceptions import (
|
|
104
98
|
ContextNotFoundError,
|
|
105
99
|
SandboxAuthenticationError,
|
|
@@ -123,16 +117,7 @@ from .filesystem import (
|
|
|
123
117
|
SandboxFileHandle,
|
|
124
118
|
SandboxFilesystem,
|
|
125
119
|
)
|
|
126
|
-
from .google_colab import (
|
|
127
|
-
GoogleColabKernelClient,
|
|
128
|
-
parse_google_colab_channels_url,
|
|
129
|
-
)
|
|
130
|
-
from .google_colab_sandbox import GoogleColabSandbox
|
|
131
120
|
from .interfaces import ISandboxClient
|
|
132
|
-
from .jupyter_server_sandbox import JupyterServerSandbox
|
|
133
|
-
from .kaggle import KAGGLE_API_TOKEN_ENV, KaggleKernelClient, parse_kaggle_channels_url
|
|
134
|
-
from .kaggle_execute import KaggleExecutionResult, KaggleKernelExecutor
|
|
135
|
-
from .kaggle_sandbox import KaggleSandbox
|
|
136
121
|
from .lifecycle import (
|
|
137
122
|
INSTANCE_OPERATIONS,
|
|
138
123
|
LIFECYCLE_OPERATIONS,
|
|
@@ -156,7 +141,6 @@ from .manage import (
|
|
|
156
141
|
get_manager,
|
|
157
142
|
manageable_variants,
|
|
158
143
|
)
|
|
159
|
-
from .modal_sandbox import ModalSandbox
|
|
160
144
|
from .models import (
|
|
161
145
|
CodeError,
|
|
162
146
|
Context,
|
|
@@ -168,6 +152,7 @@ from .models import (
|
|
|
168
152
|
MIMEType,
|
|
169
153
|
OutputHandler,
|
|
170
154
|
OutputMessage,
|
|
155
|
+
Reaction,
|
|
171
156
|
ResourceConfig,
|
|
172
157
|
Result,
|
|
173
158
|
SandboxConfig,
|
|
@@ -179,7 +164,6 @@ from .models import (
|
|
|
179
164
|
TunnelInfo,
|
|
180
165
|
normalize_variant,
|
|
181
166
|
)
|
|
182
|
-
from .monty_sandbox import MontySandbox
|
|
183
167
|
from .provider_ingress import provider_ingress_execution
|
|
184
168
|
from .providers import (
|
|
185
169
|
PROVIDERS,
|
|
@@ -188,6 +172,30 @@ from .providers import (
|
|
|
188
172
|
available_providers,
|
|
189
173
|
get_provider,
|
|
190
174
|
)
|
|
175
|
+
from .sandboxes.cloudflare import CloudflareSandbox
|
|
176
|
+
from .sandboxes.coreweave import CoreWeaveSandbox
|
|
177
|
+
from .sandboxes.datalayer import DatalayerSandbox
|
|
178
|
+
from .sandboxes.daytona import DaytonaSandbox
|
|
179
|
+
from .sandboxes.docker import DockerSandbox
|
|
180
|
+
from .sandboxes.e2b import E2BSandbox
|
|
181
|
+
from .sandboxes.eval import EvalSandbox
|
|
182
|
+
from .sandboxes.google_colab import GoogleColabSandbox
|
|
183
|
+
from .sandboxes.google_colab.client import (
|
|
184
|
+
GoogleColabKernelClient,
|
|
185
|
+
parse_google_colab_channels_url,
|
|
186
|
+
)
|
|
187
|
+
from .sandboxes.jupyter_server import JupyterServerSandbox
|
|
188
|
+
from .sandboxes.kaggle import KaggleSandbox
|
|
189
|
+
from .sandboxes.kaggle.client import (
|
|
190
|
+
KAGGLE_API_TOKEN_ENV,
|
|
191
|
+
KaggleKernelClient,
|
|
192
|
+
parse_kaggle_channels_url,
|
|
193
|
+
)
|
|
194
|
+
from .sandboxes.kaggle.execute import KaggleExecutionResult, KaggleKernelExecutor
|
|
195
|
+
from .sandboxes.marimo import CellRun, MarimoRun, MarimoSandbox
|
|
196
|
+
from .sandboxes.marimo.cells import CellReply, CellsRun, MarimoCells
|
|
197
|
+
from .sandboxes.modal import ModalSandbox
|
|
198
|
+
from .sandboxes.monty import MontySandbox
|
|
191
199
|
|
|
192
200
|
#: Everything this package exports, in one sorted list — the groups it
|
|
193
201
|
#: used to be split into stopped matching what they sat above.
|
|
@@ -202,6 +210,9 @@ __all__ = [
|
|
|
202
210
|
"RUNTIMES_API_PREFIX",
|
|
203
211
|
"BuildEntry",
|
|
204
212
|
"BuiltArtifact",
|
|
213
|
+
"CellReply",
|
|
214
|
+
"CellRun",
|
|
215
|
+
"CellsRun",
|
|
205
216
|
"CloudflareSandbox",
|
|
206
217
|
"CodeError",
|
|
207
218
|
"CodeExecutionOutcome",
|
|
@@ -240,6 +251,9 @@ __all__ = [
|
|
|
240
251
|
"Logs",
|
|
241
252
|
"MIMEType",
|
|
242
253
|
"ManifestLocation",
|
|
254
|
+
"MarimoCells",
|
|
255
|
+
"MarimoRun",
|
|
256
|
+
"MarimoSandbox",
|
|
243
257
|
"MaterializeEntry",
|
|
244
258
|
"ModalSandbox",
|
|
245
259
|
"MontySandbox",
|
|
@@ -248,6 +262,7 @@ __all__ = [
|
|
|
248
262
|
"PreparedAttachment",
|
|
249
263
|
"ProcessHandle",
|
|
250
264
|
"ProviderRequirement",
|
|
265
|
+
"Reaction",
|
|
251
266
|
"ResourceConfig",
|
|
252
267
|
"Result",
|
|
253
268
|
"Sandbox",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.10.0"
|
|
@@ -534,6 +534,7 @@ class Sandbox(ABC):
|
|
|
534
534
|
- "eval": Simple Python exec() based, minimal isolation
|
|
535
535
|
- "docker": Docker container based (requires Docker)
|
|
536
536
|
- "jupyter-server": Jupyter Server with persistent kernel state
|
|
537
|
+
- "marimo": Jupyter Server whose kernel holds Marimo's reactive cell graph
|
|
537
538
|
- "datalayer": Cloud-based Datalayer runtime (default)
|
|
538
539
|
config: Optional full configuration object (overrides individual params).
|
|
539
540
|
timeout: Default timeout for code execution in seconds.
|
|
@@ -597,7 +598,7 @@ class Sandbox(ABC):
|
|
|
597
598
|
# it, and silently dropping them would be the surprising reading.
|
|
598
599
|
config = config.model_copy(update={"examples": list(examples)})
|
|
599
600
|
|
|
600
|
-
from .
|
|
601
|
+
from .sandboxes.eval import EvalSandbox
|
|
601
602
|
|
|
602
603
|
variant_value = normalize_variant(variant)
|
|
603
604
|
|
|
@@ -616,47 +617,51 @@ class Sandbox(ABC):
|
|
|
616
617
|
sandbox = EvalSandbox(config=config, **kwargs)
|
|
617
618
|
elif variant_value == "docker":
|
|
618
619
|
# Import here to avoid circular imports
|
|
619
|
-
from .
|
|
620
|
+
from .sandboxes.docker import DockerSandbox
|
|
620
621
|
|
|
621
622
|
sandbox = DockerSandbox(config=config, **kwargs)
|
|
622
623
|
elif variant_value == "jupyter-server":
|
|
623
|
-
from .
|
|
624
|
+
from .sandboxes.jupyter_server import JupyterServerSandbox
|
|
624
625
|
|
|
625
626
|
sandbox = JupyterServerSandbox(config=config, **kwargs)
|
|
627
|
+
elif variant_value == "marimo":
|
|
628
|
+
from .sandboxes.marimo import MarimoSandbox
|
|
629
|
+
|
|
630
|
+
sandbox = MarimoSandbox(config=config, **kwargs)
|
|
626
631
|
elif variant_value == "datalayer":
|
|
627
|
-
from .
|
|
632
|
+
from .sandboxes.datalayer import DatalayerSandbox
|
|
628
633
|
|
|
629
634
|
sandbox = DatalayerSandbox(config=config, **kwargs)
|
|
630
635
|
elif variant_value == "google-colab":
|
|
631
|
-
from .
|
|
636
|
+
from .sandboxes.google_colab import GoogleColabSandbox
|
|
632
637
|
|
|
633
638
|
sandbox = GoogleColabSandbox(config=config, **kwargs)
|
|
634
639
|
elif variant_value == "kaggle":
|
|
635
|
-
from .
|
|
640
|
+
from .sandboxes.kaggle import KaggleSandbox
|
|
636
641
|
|
|
637
642
|
sandbox = KaggleSandbox(config=config, **kwargs)
|
|
638
643
|
elif variant_value == "monty":
|
|
639
|
-
from .
|
|
644
|
+
from .sandboxes.monty import MontySandbox
|
|
640
645
|
|
|
641
646
|
sandbox = MontySandbox(config=config, **kwargs)
|
|
642
647
|
elif variant_value == "modal":
|
|
643
|
-
from .
|
|
648
|
+
from .sandboxes.modal import ModalSandbox
|
|
644
649
|
|
|
645
650
|
sandbox = ModalSandbox(config=config, **kwargs)
|
|
646
651
|
elif variant_value == "daytona":
|
|
647
|
-
from .
|
|
652
|
+
from .sandboxes.daytona import DaytonaSandbox
|
|
648
653
|
|
|
649
654
|
sandbox = DaytonaSandbox(config=config, **kwargs)
|
|
650
655
|
elif variant_value == "e2b":
|
|
651
|
-
from .
|
|
656
|
+
from .sandboxes.e2b import E2BSandbox
|
|
652
657
|
|
|
653
658
|
sandbox = E2BSandbox(config=config, **kwargs)
|
|
654
659
|
elif variant_value == "coreweave":
|
|
655
|
-
from .
|
|
660
|
+
from .sandboxes.coreweave import CoreWeaveSandbox
|
|
656
661
|
|
|
657
662
|
sandbox = CoreWeaveSandbox(config=config, **kwargs)
|
|
658
663
|
elif variant_value == "cloudflare":
|
|
659
|
-
from .
|
|
664
|
+
from .sandboxes.cloudflare import CloudflareSandbox
|
|
660
665
|
|
|
661
666
|
sandbox = CloudflareSandbox(config=config, **kwargs)
|
|
662
667
|
else:
|
|
@@ -688,7 +693,7 @@ class Sandbox(ABC):
|
|
|
688
693
|
SandboxNotFoundError: If no sandbox with the given ID exists.
|
|
689
694
|
"""
|
|
690
695
|
# This is primarily for datalayer
|
|
691
|
-
from .
|
|
696
|
+
from .sandboxes.datalayer import DatalayerSandbox
|
|
692
697
|
|
|
693
698
|
return DatalayerSandbox.from_id(sandbox_id, **kwargs)
|
|
694
699
|
|
|
@@ -710,51 +715,55 @@ class Sandbox(ABC):
|
|
|
710
715
|
variant_value = normalize_variant(variant)
|
|
711
716
|
|
|
712
717
|
if variant_value == "eval":
|
|
713
|
-
from .
|
|
718
|
+
from .sandboxes.eval import EvalSandbox
|
|
714
719
|
|
|
715
720
|
return EvalSandbox.list_environments()
|
|
716
721
|
if variant_value == "docker":
|
|
717
|
-
from .
|
|
722
|
+
from .sandboxes.docker import DockerSandbox
|
|
718
723
|
|
|
719
724
|
return DockerSandbox.list_environments()
|
|
720
725
|
if variant_value == "jupyter-server":
|
|
721
|
-
from .
|
|
726
|
+
from .sandboxes.jupyter_server import JupyterServerSandbox
|
|
722
727
|
|
|
723
728
|
return JupyterServerSandbox.list_environments()
|
|
729
|
+
if variant_value == "marimo":
|
|
730
|
+
from .sandboxes.marimo import MarimoSandbox
|
|
731
|
+
|
|
732
|
+
return MarimoSandbox.list_environments()
|
|
724
733
|
if variant_value == "monty":
|
|
725
|
-
from .
|
|
734
|
+
from .sandboxes.monty import MontySandbox
|
|
726
735
|
|
|
727
736
|
return MontySandbox.list_environments()
|
|
728
737
|
if variant_value == "modal":
|
|
729
|
-
from .
|
|
738
|
+
from .sandboxes.modal import ModalSandbox
|
|
730
739
|
|
|
731
740
|
return ModalSandbox.list_environments()
|
|
732
741
|
if variant_value == "daytona":
|
|
733
|
-
from .
|
|
742
|
+
from .sandboxes.daytona import DaytonaSandbox
|
|
734
743
|
|
|
735
744
|
return DaytonaSandbox.list_environments()
|
|
736
745
|
if variant_value == "e2b":
|
|
737
|
-
from .
|
|
746
|
+
from .sandboxes.e2b import E2BSandbox
|
|
738
747
|
|
|
739
748
|
return E2BSandbox.list_environments()
|
|
740
749
|
if variant_value == "coreweave":
|
|
741
|
-
from .
|
|
750
|
+
from .sandboxes.coreweave import CoreWeaveSandbox
|
|
742
751
|
|
|
743
752
|
return CoreWeaveSandbox.list_environments()
|
|
744
753
|
if variant_value == "cloudflare":
|
|
745
|
-
from .
|
|
754
|
+
from .sandboxes.cloudflare import CloudflareSandbox
|
|
746
755
|
|
|
747
756
|
return CloudflareSandbox.list_environments()
|
|
748
757
|
if variant_value == "kaggle":
|
|
749
|
-
from .
|
|
758
|
+
from .sandboxes.kaggle import KaggleSandbox
|
|
750
759
|
|
|
751
760
|
return KaggleSandbox.list_environments()
|
|
752
761
|
if variant_value == "google-colab":
|
|
753
|
-
from .
|
|
762
|
+
from .sandboxes.google_colab import GoogleColabSandbox
|
|
754
763
|
|
|
755
764
|
return GoogleColabSandbox.list_environments()
|
|
756
765
|
if variant_value == "datalayer":
|
|
757
|
-
from .
|
|
766
|
+
from .sandboxes.datalayer import DatalayerSandbox
|
|
758
767
|
|
|
759
768
|
return DatalayerSandbox.list_environments(**kwargs)
|
|
760
769
|
raise ValueError(
|
|
@@ -779,7 +788,7 @@ class Sandbox(ABC):
|
|
|
779
788
|
Yields:
|
|
780
789
|
Sandbox instances.
|
|
781
790
|
"""
|
|
782
|
-
from .
|
|
791
|
+
from .sandboxes.datalayer import DatalayerSandbox
|
|
783
792
|
|
|
784
793
|
yield from DatalayerSandbox.list_all(tags=tags, **kwargs)
|
|
785
794
|
|