opencomputer-sdk 0.6.4__tar.gz → 0.6.5__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.
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/PKG-INFO +1 -1
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/sandbox.py +6 -6
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/pyproject.toml +1 -1
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/.gitignore +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/README.md +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/run_all_tests.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/stream_demo.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_commands.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_concurrent.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_declarative_images.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_default_template.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_disk_size.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_domain_tls.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_environment.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_exec.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_file_ops.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_large_files.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_multi_template.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_python_sdk.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_reconnect.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_secret_store_fork.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_secretstore.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_shell.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/examples/test_timeout.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/__init__.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/agent.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/commands.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/exec.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/filesystem.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/image.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/mounts.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/project.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/pty.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/shell.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/snapshot.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/sse.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/template.py +0 -0
- {opencomputer_sdk-0.6.4 → opencomputer_sdk-0.6.5}/opencomputer/usage.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opencomputer-sdk
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.5
|
|
4
4
|
Summary: Python SDK for OpenComputer - cloud sandbox platform
|
|
5
5
|
Project-URL: Homepage, https://github.com/diggerhq/opensandbox
|
|
6
6
|
Project-URL: Repository, https://github.com/diggerhq/opensandbox
|
|
@@ -606,7 +606,7 @@ class Sandbox:
|
|
|
606
606
|
self,
|
|
607
607
|
name: str,
|
|
608
608
|
kind: str | None = None,
|
|
609
|
-
promote_to_full: bool =
|
|
609
|
+
promote_to_full: bool | None = None,
|
|
610
610
|
retention_policy: dict | None = None,
|
|
611
611
|
) -> dict:
|
|
612
612
|
"""Create a named checkpoint of the running sandbox.
|
|
@@ -615,9 +615,9 @@ class Sandbox:
|
|
|
615
615
|
name: A unique name for this checkpoint.
|
|
616
616
|
kind: Optional checkpoint kind. Use "full" for disk, memory, and
|
|
617
617
|
device state, or "disk_only" for a disk-only checkpoint that
|
|
618
|
-
|
|
619
|
-
promote_to_full:
|
|
620
|
-
|
|
618
|
+
automatically prepares a full artifact for faster future forks.
|
|
619
|
+
promote_to_full: Advanced override for disk-only checkpoints.
|
|
620
|
+
Defaults to server behavior.
|
|
621
621
|
retention_policy: Optional policy such as
|
|
622
622
|
{"mode": "delete_oldest", "maxCount": 10}. When set, the
|
|
623
623
|
server may delete older eligible checkpoints before creating
|
|
@@ -629,8 +629,8 @@ class Sandbox:
|
|
|
629
629
|
body = {"name": name}
|
|
630
630
|
if kind is not None:
|
|
631
631
|
body["kind"] = kind
|
|
632
|
-
if promote_to_full:
|
|
633
|
-
body["promoteToFull"] =
|
|
632
|
+
if promote_to_full is not None:
|
|
633
|
+
body["promoteToFull"] = promote_to_full
|
|
634
634
|
if retention_policy is not None:
|
|
635
635
|
body["retentionPolicy"] = retention_policy
|
|
636
636
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|