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.
Files changed (42) hide show
  1. {boxd-0.1.5.dev25/src/boxd.egg-info → boxd-0.1.5.dev26}/PKG-INFO +1 -1
  2. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/pyproject.toml +1 -1
  3. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_sync.py +22 -3
  4. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26/src/boxd.egg-info}/PKG-INFO +1 -1
  5. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/LICENSE +0 -0
  6. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/README.md +0 -0
  7. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/setup.cfg +0 -0
  8. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/__init__.py +0 -0
  9. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_generated/__init__.py +0 -0
  10. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_generated/api_pb2.py +0 -0
  11. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_generated/api_pb2_grpc.py +0 -0
  12. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_utils.py +0 -0
  13. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/_version_check.py +0 -0
  14. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/aio.py +0 -0
  15. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/auth.py +0 -0
  16. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/billing.py +0 -0
  17. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/box.py +0 -0
  18. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/boxes.py +0 -0
  19. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/client.py +0 -0
  20. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/disks.py +0 -0
  21. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/domains.py +0 -0
  22. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/errors.py +0 -0
  23. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/exec.py +0 -0
  24. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/networks.py +0 -0
  25. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/templates.py +0 -0
  26. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/tokens.py +0 -0
  27. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd/types.py +0 -0
  28. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/SOURCES.txt +0 -0
  29. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/dependency_links.txt +0 -0
  30. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/requires.txt +0 -0
  31. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/src/boxd.egg-info/top_level.txt +0 -0
  32. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_auth.py +0 -0
  33. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_boxes.py +0 -0
  34. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_e2e.py +0 -0
  35. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_e2e_v2.py +0 -0
  36. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_exec.py +0 -0
  37. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_files.py +0 -0
  38. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_lifecycle.py +0 -0
  39. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_proxies.py +0 -0
  40. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_utils.py +0 -0
  41. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_v2.py +0 -0
  42. {boxd-0.1.5.dev25 → boxd-0.1.5.dev26}/tests/test_version_check.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boxd
3
- Version: 0.1.5.dev25
3
+ Version: 0.1.5.dev26
4
4
  Summary: Python SDK for the boxd cloud VM platform
5
5
  Author: Azin
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boxd"
3
- version = "0.1.5.dev25"
3
+ version = "0.1.5.dev26"
4
4
  description = "Python SDK for the boxd cloud VM platform"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -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
- are forwarded automatically from the underlying async Box.
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 ("id", "name", "image", "public_ip", "status", "url", "boot_time_ms"):
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boxd
3
- Version: 0.1.5.dev25
3
+ Version: 0.1.5.dev26
4
4
  Summary: Python SDK for the boxd cloud VM platform
5
5
  Author: Azin
6
6
  License-Expression: MIT
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