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

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

Built distribution (wheel)

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

Total release size: 25.0 kB

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

Download URL unikraft_cloud_plugin_sandbox_api-1.2.1.dev10.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
de7da1904ac887f602b6cfbb23854a1610451c255c502c4b3da01bec88ff2443
BLAKE2b-256 checksum
How to use checksums
c7d7bf65b38407f92ce29ee0cde3e20c35a65549b4a82a0b163fb3d2dba9a249
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.dev10-py3-none-any.whl

Download URL unikraft_cloud_plugin_sandbox_api-1.2.1.dev10-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2f6df8fbf2a00fb5ab782d80f23e7490ae82108f040ffd9f9f49b49aaf84b98
BLAKE2b-256 checksum
How to use checksums
853149f15fdf343e843db4897411e96899a097c38f23ccc2e87badf58ebeed97
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.dev10

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