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.dev11

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

Built distribution (wheel)

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

Total release size: 25.2 kB

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

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

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

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