vaultrun-sdk 0.2.1__tar.gz → 0.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vaultrun-sdk
3
- Version: 0.2.1
3
+ Version: 0.3.4
4
4
  Summary: Python SDK for VaultRun — self-hosted secure AI agent sandbox runtime (Docker, MCP, audit trail)
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://vaultrun.dev
@@ -43,7 +43,7 @@ pip install vaultrun-sdk
43
43
  ## Quickstart
44
44
 
45
45
  ```python
46
- from sandbox_sdk import Client
46
+ from vaultrun_sdk import Client
47
47
 
48
48
  client = Client("http://localhost:8080", api_key="vr_...")
49
49
 
@@ -15,7 +15,7 @@ pip install vaultrun-sdk
15
15
  ## Quickstart
16
16
 
17
17
  ```python
18
- from sandbox_sdk import Client
18
+ from vaultrun_sdk import Client
19
19
 
20
20
  client = Client("http://localhost:8080", api_key="vr_...")
21
21
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vaultrun-sdk"
7
- version = "0.2.1"
7
+ version = "0.3.4"
8
8
  description = "Python SDK for VaultRun — self-hosted secure AI agent sandbox runtime (Docker, MCP, audit trail)"
9
9
  readme = "README.md"
10
10
  license = { text = "Apache-2.0" }
@@ -47,4 +47,4 @@ dev = ["pytest>=8", "responses>=0.25"]
47
47
 
48
48
  [tool.setuptools.packages.find]
49
49
  where = ["."]
50
- include = ["sandbox_sdk*"]
50
+ include = ["vaultrun_sdk*", "sandbox_sdk*"]
@@ -0,0 +1,20 @@
1
+ """Deprecated alias for :mod:`vaultrun_sdk`.
2
+
3
+ ``pip install vaultrun-sdk`` provides the ``vaultrun_sdk`` package. This module
4
+ only exists so code written against the old import name keeps working.
5
+ """
6
+
7
+ import sys
8
+ import warnings
9
+
10
+ import vaultrun_sdk as _impl
11
+ from vaultrun_sdk import * # noqa: F401,F403
12
+ from vaultrun_sdk import __all__, __version__ # noqa: F401
13
+
14
+ warnings.warn(
15
+ "'sandbox_sdk' is deprecated; use 'import vaultrun_sdk' (package vaultrun-sdk).",
16
+ DeprecationWarning,
17
+ stacklevel=2,
18
+ )
19
+
20
+ sys.modules[__name__ + ".client"] = _impl.client
@@ -6,7 +6,7 @@ import responses as rsps
6
6
 
7
7
  import pytest
8
8
 
9
- from sandbox_sdk.client import APIKey, Client, CreatedKey, File, Run, Session, VaultRunError
9
+ from vaultrun_sdk.client import APIKey, Client, CreatedKey, File, Run, Session, VaultRunError
10
10
 
11
11
  BASE_URL = "http://testserver"
12
12
 
@@ -492,7 +492,7 @@ def test_get_session(client: Client) -> None:
492
492
 
493
493
  @rsps.activate
494
494
  def test_run_async(client: Client) -> None:
495
- from sandbox_sdk.client import AsyncRunResult
495
+ from vaultrun_sdk.client import AsyncRunResult
496
496
 
497
497
  rsps.add(
498
498
  rsps.POST,
@@ -655,7 +655,7 @@ def test_api_key_header_sent(client: Client) -> None:
655
655
 
656
656
  @rsps.activate
657
657
  def test_run_async_with_callback(client: Client) -> None:
658
- from sandbox_sdk.client import AsyncRunResult
658
+ from vaultrun_sdk.client import AsyncRunResult
659
659
 
660
660
  rsps.add(
661
661
  rsps.POST,
@@ -683,7 +683,7 @@ def test_run_async_with_callback(client: Client) -> None:
683
683
 
684
684
  @rsps.activate
685
685
  def test_get_session_stats(client: Client) -> None:
686
- from sandbox_sdk.client import SessionStats
686
+ from vaultrun_sdk.client import SessionStats
687
687
 
688
688
  rsps.add(
689
689
  rsps.GET,
@@ -732,7 +732,7 @@ def test_get_session_logs(client: Client) -> None:
732
732
 
733
733
  @rsps.activate
734
734
  def test_list_images(client: Client) -> None:
735
- from sandbox_sdk.client import Image
735
+ from vaultrun_sdk.client import Image
736
736
 
737
737
  rsps.add(
738
738
  rsps.GET,
@@ -764,7 +764,7 @@ def test_list_images(client: Client) -> None:
764
764
 
765
765
  @rsps.activate
766
766
  def test_pull_image(client: Client) -> None:
767
- from sandbox_sdk.client import PullStatus
767
+ from vaultrun_sdk.client import PullStatus
768
768
 
769
769
  rsps.add(
770
770
  rsps.POST,
@@ -781,3 +781,21 @@ def test_pull_image(client: Client) -> None:
781
781
  body = rsps.calls[0].request.body
782
782
  decoded = body.decode() if isinstance(body, bytes) else body
783
783
  assert "python:3.12-slim" in decoded
784
+
785
+
786
+ def test_legacy_sandbox_sdk_alias_still_works():
787
+ import importlib
788
+ import sys
789
+ import warnings
790
+
791
+ sys.modules.pop("sandbox_sdk", None)
792
+ with warnings.catch_warnings(record=True) as caught:
793
+ warnings.simplefilter("always")
794
+ legacy = importlib.import_module("sandbox_sdk")
795
+ import vaultrun_sdk
796
+
797
+ assert legacy.Client is vaultrun_sdk.Client
798
+ assert any(issubclass(w.category, DeprecationWarning) for w in caught)
799
+ from sandbox_sdk.client import VaultRunError as LegacyError
800
+
801
+ assert LegacyError is vaultrun_sdk.VaultRunError
@@ -39,4 +39,13 @@ __all__ = [
39
39
  "PullStatus",
40
40
  "VaultRunError",
41
41
  ]
42
- __version__ = "0.1.0"
42
+
43
+ try:
44
+ from importlib.metadata import PackageNotFoundError, version as _version
45
+
46
+ try:
47
+ __version__ = _version("vaultrun-sdk")
48
+ except PackageNotFoundError:
49
+ __version__ = "0+unknown"
50
+ except ImportError: # pragma: no cover
51
+ __version__ = "0+unknown"
@@ -187,7 +187,7 @@ class Client:
187
187
 
188
188
  Example::
189
189
 
190
- from sandbox_sdk import Client
190
+ from vaultrun_sdk import Client
191
191
 
192
192
  client = Client("http://localhost:8080", api_key="vr_...")
193
193
  session = client.create_session(image="python:3.12-slim")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vaultrun-sdk
3
- Version: 0.2.1
3
+ Version: 0.3.4
4
4
  Summary: Python SDK for VaultRun — self-hosted secure AI agent sandbox runtime (Docker, MCP, audit trail)
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://vaultrun.dev
@@ -43,7 +43,7 @@ pip install vaultrun-sdk
43
43
  ## Quickstart
44
44
 
45
45
  ```python
46
- from sandbox_sdk import Client
46
+ from vaultrun_sdk import Client
47
47
 
48
48
  client = Client("http://localhost:8080", api_key="vr_...")
49
49
 
@@ -1,8 +1,9 @@
1
1
  README.md
2
2
  pyproject.toml
3
3
  sandbox_sdk/__init__.py
4
- sandbox_sdk/client.py
5
4
  tests/test_client.py
5
+ vaultrun_sdk/__init__.py
6
+ vaultrun_sdk/client.py
6
7
  vaultrun_sdk.egg-info/PKG-INFO
7
8
  vaultrun_sdk.egg-info/SOURCES.txt
8
9
  vaultrun_sdk.egg-info/dependency_links.txt
@@ -0,0 +1,2 @@
1
+ sandbox_sdk
2
+ vaultrun_sdk
@@ -1 +0,0 @@
1
- sandbox_sdk
File without changes