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.3.0.dev12

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.3.0.dev12
File Size Uploaded Provenance Actions
unikraft_cloud_plugin_sandbox_api-1.3.0.dev12.tar.gz 10.7 kB Without provenance Details for unikraft_cloud_plugin_sandbox_api-1.3.0.dev12.tar.gz

Built distribution (wheel)

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

Total release size: 25.4 kB

Release files / unikraft_cloud_plugin_sandbox_api-1.3.0.dev12.tar.gz

Download URL unikraft_cloud_plugin_sandbox_api-1.3.0.dev12.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8dfc6b829d7ec1969a71f22964e7974114b7800d2c1e72f8cbea9a96f6cf40ef
BLAKE2b-256 checksum
How to use checksums
bd33f257ebd8190a9328790c16408bca5ce7ff1a653e15e479ce5294e330bde9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.0.dev12-py3-none-any.whl

Download URL unikraft_cloud_plugin_sandbox_api-1.3.0.dev12-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b2a6d31276db3c11fdc8ca4863c3b57b2a73935a41b77fdc36b86a0cee0ac97
BLAKE2b-256 checksum
How to use checksums
1f6608515ea2e99e47eeef46bd7951b7f75caac7f442b18bd33b19014d6e1c00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.3.0.dev12

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