boxd 0.1.5.dev25__tar.gz → 0.1.5.dev26__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.
- {boxd-0.1.5.dev25/src/boxd.egg-info → boxd-0.1.5.dev26}/PKG-INFO +1 -1
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/pyproject.toml +1 -1
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_sync.py +22 -3
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26/src/boxd.egg-info}/PKG-INFO +1 -1
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/LICENSE +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/README.md +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/setup.cfg +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/__init__.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_generated/__init__.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_generated/api_pb2.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_generated/api_pb2_grpc.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_utils.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_version_check.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/aio.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/auth.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/billing.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/box.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/boxes.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/client.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/disks.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/domains.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/errors.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/exec.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/networks.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/templates.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/tokens.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/types.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/SOURCES.txt +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/dependency_links.txt +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/requires.txt +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/top_level.txt +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_auth.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_boxes.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_e2e.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_e2e_v2.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_exec.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_files.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_lifecycle.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_proxies.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_utils.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_v2.py +0 -0
- {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_version_check.py +0 -0
|
@@ -40,10 +40,29 @@ class _SyncBase:
|
|
|
40
40
|
class Box(_SyncBase):
|
|
41
41
|
"""A boxd VM (synchronous API).
|
|
42
42
|
|
|
43
|
-
Data attributes (id, name, image, public_ip, status, url, boot_time_ms
|
|
44
|
-
|
|
43
|
+
Data attributes (id, name, image, public_ip, status, url, boot_time_ms,
|
|
44
|
+
forked_from, restart_policy, disk_bytes, auto_suspend_timeout_secs,
|
|
45
|
+
ssh_port) are forwarded automatically from the underlying async Box.
|
|
45
46
|
"""
|
|
46
47
|
|
|
48
|
+
# Data fields forwarded from the async Box dataclass. Methods are NOT
|
|
49
|
+
# forwarded — the sync wrappers below shadow them; forwarding blindly would
|
|
50
|
+
# hand callers un-awaited coroutines. Keep in sync with box.Box's fields.
|
|
51
|
+
_DATA_ATTRS = (
|
|
52
|
+
"id",
|
|
53
|
+
"name",
|
|
54
|
+
"image",
|
|
55
|
+
"public_ip",
|
|
56
|
+
"status",
|
|
57
|
+
"url",
|
|
58
|
+
"boot_time_ms",
|
|
59
|
+
"forked_from",
|
|
60
|
+
"restart_policy",
|
|
61
|
+
"disk_bytes",
|
|
62
|
+
"auto_suspend_timeout_secs",
|
|
63
|
+
"ssh_port",
|
|
64
|
+
)
|
|
65
|
+
|
|
47
66
|
def __init__(self, async_box, loop: asyncio.AbstractEventLoop) -> None:
|
|
48
67
|
from .box import Box as AsyncBox
|
|
49
68
|
|
|
@@ -52,7 +71,7 @@ class Box(_SyncBase):
|
|
|
52
71
|
|
|
53
72
|
def __getattr__(self, name: str):
|
|
54
73
|
# Forward data attributes from the async Box dataclass
|
|
55
|
-
if name in
|
|
74
|
+
if name in self._DATA_ATTRS:
|
|
56
75
|
return getattr(self._async, name)
|
|
57
76
|
raise AttributeError(f"{type(self).__name__!r} object has no attribute {name!r}")
|
|
58
77
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|