Harbor environment plugin for Sandbox Cloud Platform
Project description
sandbox-cloud-harbor-environment
Harbor environment plugin for Sandbox Cloud Platform.
Lets Harbor users run benchmark jobs (e.g. terminal-bench 2.0) against the Sandbox Cloud Platform with the same UX as other Harbor cloud environments. Installable from public PyPI — no company-private index required.
Installation
uv tool install harbor --with sandbox-cloud-harbor-environment
or with pip in a Python 3.12 environment:
pip install harbor==0.6.6 sandbox-cloud-harbor-environment
This pulls the public sandbox-cloud-client SDK automatically.
Usage
Set your connection details in environment variables:
export SANDBOX_CLOUD_PLATFORM_BASE_URL=https://your-platform-host
export SANDBOX_CLOUD_PLATFORM_API_KEY=scp...
Run a Harbor benchmark using the import-path extension point:
harbor run -d terminal-bench@2.0 \
--environment-import-path sandbox_cloud_harbor_environment:SandboxCloudHarborEnvironment
Why
--environment-import-pathand not--env sandbox-cloud-platform?Harbor 0.6.6's
--envflag only accepts values from the built-inEnvironmentTypeenum (docker, daytona, e2b, …). External packages installed via--withcannot add new enum values at runtime. The official Harbor extension point for custom environments is--environment-import-path, which accepts anymodule.path:ClassNameimportable in the tool's virtual environment.
Environment variables
| Variable | Default | Description |
|---|---|---|
SANDBOX_CLOUD_PLATFORM_BASE_URL |
http://localhost:8000 |
Platform base URL |
SANDBOX_CLOUD_PLATFORM_API_KEY |
(none) | API key — forwarded as Authorization: Bearer; required when auth is enabled (the platform is OIDC-only) |
Compatibility
- Python 3.12+
- harbor 0.6.6
- sandbox-cloud-client >= 0.1.0 (public PyPI)
Troubleshooting
Import error: sandbox_cloud not found
The sandbox-cloud-client package provides the sandbox_cloud.* client modules and is a declared dependency; pip install sandbox-cloud-harbor-environment pulls it from public PyPI. If you see this, reinstall in a clean environment.
HTTPStatusError 401 Unauthorized
Set SANDBOX_CLOUD_PLATFORM_API_KEY to a valid API key. (Note: the in-repo sandbox_cloud.plugins.harbor.environment import-path does NOT send an auth header — use this package's import-path, which forwards Authorization: Bearer.)
Connection refused / Cannot connect to host
Set SANDBOX_CLOUD_PLATFORM_BASE_URL to the correct platform URL and ensure you are on an allowed network.
Harbor version mismatch
This package targets harbor==0.6.6. Other versions may work but are not tested.
Pin harbor==0.6.6 if you encounter compatibility issues:
uv tool install harbor==0.6.6 --with sandbox-cloud-harbor-environment
License
MPL-2.0 — source-available; modifications permitted, modified covered files' source published on distribution (file-level copyleft).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sandbox_cloud_harbor_environment-0.1.0.tar.gz.
File metadata
- Download URL: sandbox_cloud_harbor_environment-0.1.0.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63392640352c92464e55d368b1c132376510b674036b607be99e85c06980467
|
|
| MD5 |
112a02e5f795dde987e153b8df319d48
|
|
| BLAKE2b-256 |
772fb34b36e26223be0de362ee01430a8fb10af45daae98c2012a5ad03e91110
|
Provenance
The following attestation bundles were made for sandbox_cloud_harbor_environment-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on e3f-six/sandbox-cloud-platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sandbox_cloud_harbor_environment-0.1.0.tar.gz -
Subject digest:
d63392640352c92464e55d368b1c132376510b674036b607be99e85c06980467 - Sigstore transparency entry: 1727685450
- Sigstore integration time:
-
Permalink:
e3f-six/sandbox-cloud-platform@09ee6592d70fd804a2720e9b9f2686669a92f9fd -
Branch / Tag:
refs/heads/issue-250/harbor-pypi-publish - Owner: https://github.com/e3f-six
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@09ee6592d70fd804a2720e9b9f2686669a92f9fd -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sandbox_cloud_harbor_environment-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sandbox_cloud_harbor_environment-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0978ebbb25f7bac1cf7446ec8a3ea7d30d62542bba515f2daff821a169c793ab
|
|
| MD5 |
76ab987cd94ce7b7a9b2f93e8e6efe9f
|
|
| BLAKE2b-256 |
7ba9891b67ebb4a04511fbd5fd84ec59bd871d20136d0b296ed939381689f0f7
|
Provenance
The following attestation bundles were made for sandbox_cloud_harbor_environment-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on e3f-six/sandbox-cloud-platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sandbox_cloud_harbor_environment-0.1.0-py3-none-any.whl -
Subject digest:
0978ebbb25f7bac1cf7446ec8a3ea7d30d62542bba515f2daff821a169c793ab - Sigstore transparency entry: 1727685616
- Sigstore integration time:
-
Permalink:
e3f-six/sandbox-cloud-platform@09ee6592d70fd804a2720e9b9f2686669a92f9fd -
Branch / Tag:
refs/heads/issue-250/harbor-pypi-publish - Owner: https://github.com/e3f-six
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@09ee6592d70fd804a2720e9b9f2686669a92f9fd -
Trigger Event:
workflow_dispatch
-
Statement type: