mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-13 04:51:00 +08:00
* feat(sdk): add lazy pagination pagers Signed-off-by: Drew Newberry <anewberry@nvidia.com> * test(sdk): harden pager edge cases Signed-off-by: Drew Newberry <anewberry@nvidia.com> * test(sdk): cover initial resume token Signed-off-by: Drew Newberry <anewberry@nvidia.com> * docs(go): fix all-workspaces pager examples Signed-off-by: Drew Newberry <anewberry@nvidia.com> --------- Signed-off-by: Drew Newberry <anewberry@nvidia.com>
53 lines
1.1 KiB
Python
53 lines
1.1 KiB
Python
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""OpenShell - Agent execution and management SDK."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .sandbox import (
|
|
ClientCredentialsAuth,
|
|
ExecChunk,
|
|
ExecResult,
|
|
Page,
|
|
Pager,
|
|
Sandbox,
|
|
SandboxClient,
|
|
SandboxError,
|
|
SandboxRef,
|
|
SandboxSession,
|
|
SandboxStatusRef,
|
|
SandboxTemplateClient,
|
|
SandboxWorkloadTemplateProvenanceRef,
|
|
TlsConfig,
|
|
WorkspaceClient,
|
|
WorkspaceRef,
|
|
)
|
|
|
|
try:
|
|
from importlib.metadata import version
|
|
|
|
__version__ = version("openshell")
|
|
except Exception:
|
|
__version__ = "0.0.0"
|
|
|
|
__all__ = [
|
|
"ClientCredentialsAuth",
|
|
"ExecChunk",
|
|
"ExecResult",
|
|
"Page",
|
|
"Pager",
|
|
"Sandbox",
|
|
"SandboxClient",
|
|
"SandboxError",
|
|
"SandboxRef",
|
|
"SandboxSession",
|
|
"SandboxStatusRef",
|
|
"SandboxTemplateClient",
|
|
"SandboxWorkloadTemplateProvenanceRef",
|
|
"TlsConfig",
|
|
"WorkspaceClient",
|
|
"WorkspaceRef",
|
|
"__version__",
|
|
]
|