podstack 1.3.16__tar.gz → 1.3.17__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 (33) hide show
  1. {podstack-1.3.16 → podstack-1.3.17}/PKG-INFO +1 -1
  2. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/experiment.py +20 -0
  3. {podstack-1.3.16 → podstack-1.3.17}/podstack.egg-info/PKG-INFO +1 -1
  4. {podstack-1.3.16 → podstack-1.3.17}/pyproject.toml +1 -1
  5. {podstack-1.3.16 → podstack-1.3.17}/LICENSE +0 -0
  6. {podstack-1.3.16 → podstack-1.3.17}/README.md +0 -0
  7. {podstack-1.3.16 → podstack-1.3.17}/podstack/__init__.py +0 -0
  8. {podstack-1.3.16 → podstack-1.3.17}/podstack/annotations.py +0 -0
  9. {podstack-1.3.16 → podstack-1.3.17}/podstack/client.py +0 -0
  10. {podstack-1.3.16 → podstack-1.3.17}/podstack/exceptions.py +0 -0
  11. {podstack-1.3.16 → podstack-1.3.17}/podstack/execution.py +0 -0
  12. {podstack-1.3.16 → podstack-1.3.17}/podstack/gpu_runner.py +0 -0
  13. {podstack-1.3.16 → podstack-1.3.17}/podstack/models.py +0 -0
  14. {podstack-1.3.16 → podstack-1.3.17}/podstack/notebook.py +0 -0
  15. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/__init__.py +0 -0
  16. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/autolog.py +0 -0
  17. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/client.py +0 -0
  18. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/exceptions.py +0 -0
  19. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/model.py +0 -0
  20. {podstack-1.3.16 → podstack-1.3.17}/podstack/registry/model_utils.py +0 -0
  21. {podstack-1.3.16 → podstack-1.3.17}/podstack.egg-info/SOURCES.txt +0 -0
  22. {podstack-1.3.16 → podstack-1.3.17}/podstack.egg-info/dependency_links.txt +0 -0
  23. {podstack-1.3.16 → podstack-1.3.17}/podstack.egg-info/requires.txt +0 -0
  24. {podstack-1.3.16 → podstack-1.3.17}/podstack.egg-info/top_level.txt +0 -0
  25. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/__init__.py +0 -0
  26. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/app.py +0 -0
  27. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/exceptions.py +0 -0
  28. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/image.py +0 -0
  29. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/runner.py +0 -0
  30. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/secret.py +0 -0
  31. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/utils.py +0 -0
  32. {podstack-1.3.16 → podstack-1.3.17}/podstack_gpu/volume.py +0 -0
  33. {podstack-1.3.16 → podstack-1.3.17}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: podstack
3
- Version: 1.3.16
3
+ Version: 1.3.17
4
4
  Summary: Official Python SDK for Podstack GPU Notebook Platform
5
5
  Author-email: Podstack <support@podstack.ai>
6
6
  License-Expression: MIT
@@ -98,6 +98,26 @@ class Dataset:
98
98
  tags: Dict[str, str] = field(default_factory=dict)
99
99
  created_at: Optional[str] = None
100
100
 
101
+ def __getitem__(self, key: str):
102
+ # Convenience aliases
103
+ if key == "rows":
104
+ return self.profile.get("num_rows")
105
+ if key == "num_features":
106
+ return self.profile.get("num_features")
107
+ if key == "path":
108
+ return self.source
109
+ try:
110
+ return getattr(self, key)
111
+ except AttributeError:
112
+ raise KeyError(key)
113
+
114
+ def get(self, key: str, default=None):
115
+ try:
116
+ val = self[key]
117
+ return val if val is not None else default
118
+ except KeyError:
119
+ return default
120
+
101
121
  @classmethod
102
122
  def from_dict(cls, data: Dict[str, Any]) -> "Dataset":
103
123
  """Create a Dataset from a dict."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: podstack
3
- Version: 1.3.16
3
+ Version: 1.3.17
4
4
  Summary: Official Python SDK for Podstack GPU Notebook Platform
5
5
  Author-email: Podstack <support@podstack.ai>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "podstack"
7
- version = "1.3.16"
7
+ version = "1.3.17"
8
8
  description = "Official Python SDK for Podstack GPU Notebook Platform"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes