Skip to main content

unikraft-cloud-plugin-sandbox-api

The generated client for the Unikraft Cloud sandbox plugin API. openapi-gen generates it from the plugin's OpenAPI specification, so do not edit it by hand.

This package is the raw ("plumbing") layer. Each method carries the name of its operationId and returns the response envelope exactly as the specification describes it. If you want the idiomatic layer, use unikraft-cloud, which wraps this package and resolves the instance for you.

Install

pip install unikraft-cloud-plugin-sandbox-api

The package depends on pydantic and typing_extensions only. Each generated class takes a Transport, an object with request(), request_no_content(), request_bytes() and stream(). The ApiClient of unikraft-cloud 0.2.0 or later is one. If you want to use it as the transport, install the SDK.

Usage

The plugin runs inside a single instance and answers on that instance's plugin route, so base_url is the full plugin endpoint rather than a metro root.

import os

from unikraft_cloud.core.http import ApiClient, ApiClientConfig
from unikraft_cloud_plugin_sandbox_api import SandboxPluginApi

uuid = "..."  # The instance the plugin is attached to.
api = SandboxPluginApi(
    ApiClient(
        ApiClientConfig(
            base_url=f"https://api.fra.unikraft.cloud/v1/instances/{uuid}/plugins/sandbox",
            token=os.environ["UKC_TOKEN"],
        )
    )
)

The last path segment is whatever name the plugin was attached under in the instance's plugins array, so it is not necessarily sandbox. To let the SDK build that URL for you, use unikraft-cloud instead.

Exports

Everything below is importable from unikraft_cloud_plugin_sandbox_api.

Name Carries
SandboxPluginApi Every resource of the plugin behind one transport
CommandsApi The commands resource
FsApi The fs resource
models The wire models, an alias of unikraft_cloud_plugin_sandbox_api.models_gen
PLUGIN_NAME "sandbox", the name the plugin is attached under unless the instance's creator chose another
Transport, RawResponse The protocols a transport and a raw-bytes response satisfy
CallOptions The options every method takes as **options: headers, base_url and timeout
QueryValue What a query parameter may hold
VERSION, SDK_MIN This package's version, and the oldest unikraft-cloud whose ApiClient is a transport for it
SPEC_HASH, TEMPLATES_HASH, CONFIG_HASH SHA-256 fingerprints of the specification, the templates and the configuration this package was built from

A CallOptions key that is absent leaves the transport's default in place, so timeout=None lifts the timeout for one call and no timeout at all keeps the client's.

SandboxPluginApi groups one client per resource:

  • api.commands: the commands resource
  • api.fs: the fs resource

Metadata

Release files for unikraft-cloud-plugin-sandbox-api 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unikraft-cloud-plugin-sandbox-api 1.1.0
File Size Uploaded Provenance Actions
unikraft_cloud_plugin_sandbox_api-1.1.0.tar.gz 9.4 kB Without provenance Details for unikraft_cloud_plugin_sandbox_api-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unikraft-cloud-plugin-sandbox-api 1.1.0
File Interpreter ABI Platform Actions
unikraft_cloud_plugin_sandbox_api-1.1.0-py3-none-any.whl Python 3 none any Details for unikraft_cloud_plugin_sandbox_api-1.1.0-py3-none-any.whl

Total release size: 22.8 kB

Release files / unikraft_cloud_plugin_sandbox_api-1.1.0.tar.gz

Download URL unikraft_cloud_plugin_sandbox_api-1.1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
17bfc7462939d784962a11b8c2ad90b197b2508343a212ff2f780fae0870a4e6
BLAKE2b-256 checksum
How to use checksums
76897c9369cfb048a71c8121e0078c5727409523d96ec04324a220742dfb0187
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / unikraft_cloud_plugin_sandbox_api-1.1.0-py3-none-any.whl

Download URL unikraft_cloud_plugin_sandbox_api-1.1.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca3a132d2d942a8f0334cbbae446829a1082242b040ec30b37307a53b69ba7f3
BLAKE2b-256 checksum
How to use checksums
69ca6589996d027342e942238ceb88f21cecf0b9d763a4af8be176dad66b8b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for unikraft-cloud-plugin-sandbox-api 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page