Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.2.1.dev0

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.2.1.dev0
File Size Uploaded Provenance Actions
unikraft_cloud_plugin_sandbox_api-1.2.1.dev0.tar.gz 10.4 kB Without provenance Details for unikraft_cloud_plugin_sandbox_api-1.2.1.dev0.tar.gz

Built distribution (wheel)

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

Total release size: 24.8 kB

Release files / unikraft_cloud_plugin_sandbox_api-1.2.1.dev0.tar.gz

Download URL unikraft_cloud_plugin_sandbox_api-1.2.1.dev0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
04677bb0342dfd54b230c822288229f413f450efbd3dfdd35e7c1e77f15b668c
BLAKE2b-256 checksum
How to use checksums
b0a216b4f2450e78d48aa7748a542a8141eb22dc0dbddac41f206e2014bbdbf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.2.1.dev0-py3-none-any.whl

Download URL unikraft_cloud_plugin_sandbox_api-1.2.1.dev0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90c769d0fd4901ba7a9c3f2e41e3ef943ff326aac21ffce6a2c65e8e096e06bd
BLAKE2b-256 checksum
How to use checksums
cdc0b3e572598ba2570b261aacaa26750a004142180b001d29e38497ac2e3f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.2.1.dev0

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