Skip to main content

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-path and not --env sandbox-cloud-platform?

Harbor 0.6.6's --env flag only accepts values from the built-in EnvironmentType enum (docker, daytona, e2b, …). External packages installed via --with cannot add new enum values at runtime. The official Harbor extension point for custom environments is --environment-import-path, which accepts any module.path:ClassName importable 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.client_sdk.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sandbox_cloud_harbor_environment-1.0.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file sandbox_cloud_harbor_environment-1.0.0.tar.gz.

File metadata

File hashes

Hashes for sandbox_cloud_harbor_environment-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2b163f5fc6266a4135c781a74cdf78859a73960cc855adef1adb4c14440cdff7
MD5 0c69bddbc1a7c580761aff3f47142dcc
BLAKE2b-256 7b26cdd9bf71543233779a1d46db57906a1976ad3ec6ab2bd8640cab48c9ee2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandbox_cloud_harbor_environment-1.0.0.tar.gz:

Publisher: publish-pypi.yml on e3f-six/sandbox-cloud-platform

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sandbox_cloud_harbor_environment-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sandbox_cloud_harbor_environment-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc1c1f28afde9bf03af64a2ade29ad4386f8a918ec6f0eee452846dedf8c24e4
MD5 6d59aeba174c35c3bd193b9e44ee3e4f
BLAKE2b-256 ee68fe049dabc1ce2dd09bd92534503b5f084c1d6e4edb3a9472f9fc47915841

See more details on using hashes here.

Provenance

The following attestation bundles were made for sandbox_cloud_harbor_environment-1.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on e3f-six/sandbox-cloud-platform

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page